Class AbstractAsn1Type<T>

Type Parameters:
T - the type of the value encoded/decoded or wrapped by this
All Implemented Interfaces:
Asn1Type
Direct Known Subclasses:
Asn1Any, Asn1Choice, Asn1CollectionType, Asn1Constructed, Asn1Simple, Asn1Specific, Asn1Tagging, Asn1TaggingCollection

public abstract class AbstractAsn1Type<T> extends Asn1Encodeable
The abstract ASN1 type for all the ASN1 types. It provides basic encoding and decoding utilities.
  • Constructor Details

    • AbstractAsn1Type

      public AbstractAsn1Type(Tag tag, T value)
      Default constructor.
      Parameters:
      tag - the tag
      value - the value
    • AbstractAsn1Type

      public AbstractAsn1Type(Tag tag)
      Default constructor.
      Parameters:
      tag - the tag
    • AbstractAsn1Type

      public AbstractAsn1Type(UniversalTag tag, T value)
      Default constructor with an universal tag.
      Parameters:
      tag - the tag
      value - the value
    • AbstractAsn1Type

      public AbstractAsn1Type(UniversalTag tag)
      Default constructor with an universal tag.
      Parameters:
      tag - the tag
  • Method Details

    • getValue

      public T getValue()
    • setValue

      public void setValue(T value)
    • toString

      public String toString()
      Overrides:
      toString in class Object