public class

DERExternal

extends ASN1Object
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.DERObject
       ↳ org.bouncycastle.asn1.ASN1Object
         ↳ org.bouncycastle.asn1.DERExternal

Class Overview

Class representing the DER-type External

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
From interface org.bouncycastle.asn1.DERTags
Public Constructors
DERExternal(ASN1EncodableVector vector)
DERExternal(DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object dataValueDescriptor, DERTaggedObject externalData)
Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters
DERExternal(DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object dataValueDescriptor, int encoding, DERObject externalData)
Creates a new instance of DERExternal.
Public Methods
ASN1Object getDataValueDescriptor()
Returns the data value descriptor
DERObjectIdentifier getDirectReference()
Returns the direct reference of the external element
int getEncoding()
Returns the encoding of the content.
DERObject getExternalContent()
Returns the content of this element
DERInteger getIndirectReference()
Returns the indirect reference of this element
int hashCode()
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Object
From class org.bouncycastle.asn1.DERObject
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public DERExternal (ASN1EncodableVector vector)

public DERExternal (DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object dataValueDescriptor, DERTaggedObject externalData)

Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters

Parameters
directReference The direct reference or null if not set.
indirectReference The indirect reference or null if not set.
dataValueDescriptor The data value descriptor or null if not set.
externalData The external data in its encoded form.

public DERExternal (DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object dataValueDescriptor, int encoding, DERObject externalData)

Creates a new instance of DERExternal. See X.690 for more informations about the meaning of these parameters

Parameters
directReference The direct reference or null if not set.
indirectReference The indirect reference or null if not set.
dataValueDescriptor The data value descriptor or null if not set.
encoding The encoding to be used for the external data
externalData The external data

Public Methods

public ASN1Object getDataValueDescriptor ()

Returns the data value descriptor

Returns
  • The descriptor

public DERObjectIdentifier getDirectReference ()

Returns the direct reference of the external element

Returns
  • The reference

public int getEncoding ()

Returns the encoding of the content. Valid values are

  • 0 single-ASN1-type
  • 1 OCTET STRING
  • 2 BIT STRING

Returns
  • The encoding

public DERObject getExternalContent ()

Returns the content of this element

Returns
  • The content

public DERInteger getIndirectReference ()

Returns the indirect reference of this element

Returns
  • The reference

public int hashCode ()