Class ASN1Type

java.lang.Object
org.apache.harmony.security.asn1.ASN1Type
All Implemented Interfaces:
ASN1Constants
Direct Known Subclasses:
ASN1Any, ASN1Choice, ASN1Constructed, ASN1Implicit, ASN1Primitive, ASN1StringType

public abstract class ASN1Type
extends Object
implements ASN1Constants
This abstract class is the super class for all ASN.1 types
See Also:
ASN.1
  • Field Details

    • id

      public final int id
      Integer representation of primitive identifier.
    • constrId

      public final int constrId
      Integer representation of constructed identifier.
  • Constructor Details

    • ASN1Type

      public ASN1Type​(int tagNumber)
      Constructs a primitive, universal ASN.1 type.
      Parameters:
      tagNumber - - ASN.1 tag number
      Throws:
      IllegalArgumentException - - if tagNumber is invalid
    • ASN1Type

      public ASN1Type​(int tagClass, int tagNumber)
      Constructs an ASN.1 type.
      Parameters:
      tagClass - - tag class. MUST be CLASS_UNIVERSAL, CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE
      tagNumber - - ASN.1 tag number.
      Throws:
      IllegalArgumentException - - if tagClass or tagNumber is invalid
  • Method Details