Class Asn1Object

java.lang.Object
org.apache.kerby.asn1.type.Asn1Object
Direct Known Subclasses:
Asn1Encodeable, Asn1ParseResult

public abstract class Asn1Object extends Object
An ASN1 object has a tag.
  • Constructor Details

    • Asn1Object

      public Asn1Object(Tag tag)
      Constructor with a tag
      Parameters:
      tag - The tag
    • Asn1Object

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

      public Asn1Object(int tag)
      Constructor with a tag
      Parameters:
      tag - The tag
  • Method Details

    • tag

      public Tag tag()
    • tagFlags

      public int tagFlags()
    • tagNo

      public int tagNo()
    • usePrimitive

      public void usePrimitive(boolean isPrimitive)
    • isPrimitive

      public boolean isPrimitive()
    • isUniversal

      public boolean isUniversal()
    • isAppSpecific

      public boolean isAppSpecific()
    • isContextSpecific

      public boolean isContextSpecific()
    • isTagSpecific

      public boolean isTagSpecific()
    • isEOC

      public boolean isEOC()
    • isNull

      public boolean isNull()
    • isSimple

      public boolean isSimple()
    • isCollection

      public boolean isCollection()
    • getHeaderLength

      protected abstract int getHeaderLength() throws IOException
      Throws:
      IOException
    • getBodyLength

      protected abstract int getBodyLength() throws IOException
      Throws:
      IOException
    • simpleInfo

      protected String simpleInfo()