Class ASN1External

All Implemented Interfaces:
ASN1Encodable, Encodable
Direct Known Subclasses:
DERExternal, DLExternal

public abstract class ASN1External extends ASN1Primitive
Class representing the DER-type External
  • Method Details

    • getInstance

      public static ASN1External getInstance(Object obj)
    • getInstance

      public static ASN1External getInstance(ASN1TaggedObject taggedObject, boolean explicit)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class ASN1Primitive
    • getDataValueDescriptor

      public ASN1Primitive getDataValueDescriptor()
      Returns the data value descriptor
      Returns:
      The descriptor
    • getDirectReference

      public ASN1ObjectIdentifier getDirectReference()
      Returns the direct reference of the external element
      Returns:
      The reference
    • getEncoding

      public int getEncoding()
      Returns the encoding of the content. Valid values are
      • 0 single-ASN1-type
      • 1 OCTET STRING
      • 2 BIT STRING
      Returns:
      The encoding
    • getExternalContent

      public ASN1Primitive getExternalContent()
      Returns the content of this element
      Returns:
      The content
    • getIndirectReference

      public ASN1Integer getIndirectReference()
      Returns the indirect reference of this element
      Returns:
      The reference