Package io.anyline.nfc.bouncycastle.asn1
Class ASN1External
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public abstract class ASN1External extends ASN1Primitive
Class representing the DER-type External
-
-
Field Summary
Fields Modifier and Type Field Description public ASN1ObjectIdentifier
directReference
public ASN1Integer
indirectReference
public ASN1Primitive
dataValueDescriptor
public int
encoding
public ASN1Primitive
externalContent
-
Method Summary
Modifier and Type Method Description ASN1ObjectIdentifier
getDirectReference()
Returns the direct reference of the external element ASN1Integer
getIndirectReference()
Returns the indirect reference of this element ASN1Primitive
getDataValueDescriptor()
Returns the data value descriptor int
getEncoding()
Returns the encoding of the content. ASN1Primitive
getExternalContent()
Returns the content of this element static ASN1External
getInstance(Object obj)
static ASN1External
getInstance(ASN1TaggedObject taggedObject, boolean explicit)
int
hashCode()
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDirectReference
ASN1ObjectIdentifier getDirectReference()
Returns the direct reference of the external element
- Returns:
The reference
-
getIndirectReference
ASN1Integer getIndirectReference()
Returns the indirect reference of this element
- Returns:
The reference
-
getDataValueDescriptor
ASN1Primitive getDataValueDescriptor()
Returns the data value descriptor
- Returns:
The descriptor
-
getEncoding
int getEncoding()
Returns the encoding of the content. Valid values are
0
single-ASN1-type1
OCTET STRING2
BIT STRING
- Returns:
The encoding
-
getExternalContent
ASN1Primitive getExternalContent()
Returns the content of this element
- Returns:
The content
-
getInstance
static ASN1External getInstance(Object obj)
-
getInstance
static ASN1External getInstance(ASN1TaggedObject taggedObject, boolean explicit)
-
hashCode
int hashCode()
-
-
-
-