A generic ASN.1 value with the information that can minimally be known without knowledge of its type's ASN.1 definition. A GenericAsn1Value always stores the encoded form.

Initializer
GenericAsn1Value(Byte[] encoded, IdentityInfo identityInfo, Integer lengthOctetsOffset, Integer contentsOctetsOffset, Boolean violatesDer)
Parameters:
  • encoded

    The encoded form of the value according to the BER (ASN.1 basic encoding rules). The identity octets start at offset 0, the length octets start at offset lengthOctetsOffset, and the contents octets start at offset contentsOctetsOffset.

  • identityInfo

    Decoded form of the BER encoded identity octets of this value.

  • lengthOctetsOffset

    The start of the length octets in encoded.

  • contentsOctetsOffset

    The start of the content octets in encoded.

  • violatesDer

    Indicates if the BER encoding of this value violates the DER (ASN.1 distinguished encoding rules), that is, if it is not in canonical form.

Attributes
asn1Stringshared default String asn1String

String representation that can be used in an ASN.1 listing. (Still in flux)

asn1ValueStringshared default String asn1ValueString

still not decided when to output what

contentsOctetsshared Byte[] contentsOctets

A Byte sequence consisting of the BER contents octets of this ASN.1 value

contentsOctetsOffsetshared Integer contentsOctetsOffset

The start of the content octets in encoded.

encodedshared Byte[] encoded

The encoded form of the value according to the BER (ASN.1 basic encoding rules). The identity octets start at offset 0, the length octets start at offset lengthOctetsOffset, and the contents octets start at offset contentsOctetsOffset.

identityInfoshared IdentityInfo identityInfo

Decoded form of the BER encoded identity octets of this value.

identityOctetsshared Byte[] identityOctets

A Byte sequence consisting of the BER identity octets of this ASN.1 value

lengthOctetsshared Byte[] lengthOctets

A Byte sequence consisting of the BER length octets of this ASN.1 value

lengthOctetsOffsetshared Integer lengthOctetsOffset

The start of the length octets in encoded.

stringshared actual default String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Refines Object.string
tagshared Tag tag

Convenience access to the tag of this value, stored in the identityInfo.

violatesDershared Boolean violatesDer

Indicates if the BER encoding of this value violates the DER (ASN.1 distinguished encoding rules), that is, if it is not in canonical form.

Inherited Attributes
Attributes inherited from: Object
hash, string
Inherited Methods
Methods inherited from: Object
equals