Asn1PrimitiveOctetString
ASN.1 OCTET STRING 0x04 (BERTags.OCTET_STRING) containing data, which does not decode to an Asn1Element
Parameters
the data to hold
Properties
Length (already properly encoded into a byte array for writing as ASN.1) of the contained data. For a primitive, this is just the size of the held bytes. For a structure, it is the sum of the number of bytes needed to encode all held child nodes.
Total number of bytes required to represent the ths element, when encoding to ASN.1.
Functions
Exception-free version of decode
Decode the Asn1Primitive as a BigInteger
Exception-free version of readBigInteger
decodes this Asn1Primitive's content into an ByteArray, assuming it was encoded as BIT STRING
Exception-free version of readBitString
decodes this Asn1Primitive's content into an Boolean
decodes this Asn1Primitive's content into an Instant if it is encoded as UTC TIME or GENERALIZED TIME
Exception-free version of readInstant
decodes this Asn1Primitive's content into an Int
Exception-free version of readInt
decodes this Asn1Primitive's content into a Long
Exception-free version of readLong
decodes this Asn1Primitive to null (i.e. verifies the tag to be BERTags.ASN1_NULL and the content to be empty
Name seems odd, but this is just an exception-free version of readNull
decodes this Asn1Primitive's content into an ObjectIdentifier
decodes this Asn1Primitive's content into an Asn1String
Exception-free version of readString
Convenience method to directly produce an HEX string of this element's ANS.1 representation
Returns the actual type of this object inside the Asn1Element class hierarchy T will either be Asn1Primitive/Asn1PrimitiveOctetString or Asn1Structure/Asn1EncapsulatingOctetString