Asn1OctetString

Interface describing an ASN.1 OCTET STRING. This is really more of a crutch, since an octet string is either an

This interface is implemented by Asn1PrimitiveOctetString for the former case and by Asn1EncapsulatingOctetString to cover the latter case Hence, T will either be Asn1Primitive/Asn1PrimitiveOctetString or Asn1Structure/Asn1EncapsulatingOctetString

Inheritors

Properties

Link copied to clipboard
abstract val content: ByteArray

Raw data contained in this ASN.1 primitive in its encoded form. Requires decoding to interpret it.

Functions

Link copied to clipboard
abstract fun unwrap(): T

Returns the actual type of this object inside the Asn1Element class hierarchy T will either be Asn1Primitive/Asn1PrimitiveOctetString or Asn1Structure/Asn1EncapsulatingOctetString