Package org.bouncycastle.asn1
Class ASN1External
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.ASN1Primitive
-
- org.bouncycastle.asn1.ASN1External
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
- Direct Known Subclasses:
DERExternal,DLExternal
public abstract class ASN1External extends ASN1Primitive
Class representing the DER-type External
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1PrimitivegetDataValueDescriptor()Returns the data value descriptorASN1ObjectIdentifiergetDirectReference()Returns the direct reference of the external elementintgetEncoding()Returns the encoding of the content.ASN1PrimitivegetExternalContent()Returns the content of this elementASN1IntegergetIndirectReference()Returns the indirect reference of this elementstatic ASN1ExternalgetInstance(java.lang.Object obj)static ASN1ExternalgetInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)static ASN1ExternalgetTagged(ASN1TaggedObject taggedObject, boolean declaredExplicit)inthashCode()-
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue
-
-
-
-
Method Detail
-
getInstance
public static ASN1External getInstance(java.lang.Object obj)
-
getInstance
public static ASN1External getInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)
-
getTagged
public static ASN1External getTagged(ASN1TaggedObject taggedObject, boolean declaredExplicit)
-
hashCode
public int hashCode()
- Specified by:
hashCodein classASN1Primitive
-
getDataValueDescriptor
public ASN1Primitive getDataValueDescriptor()
Returns the data value descriptor- Returns:
- The descriptor
-
getDirectReference
public ASN1ObjectIdentifier getDirectReference()
Returns the direct reference of the external element- Returns:
- The reference
-
getEncoding
public int getEncoding()
Returns the encoding of the content. Valid values are0single-ASN1-type1OCTET STRING2BIT STRING
- Returns:
- The encoding
-
getExternalContent
public ASN1Primitive getExternalContent()
Returns the content of this element- Returns:
- The content
-
getIndirectReference
public ASN1Integer getIndirectReference()
Returns the indirect reference of this element- Returns:
- The reference
-
-