Class ASN1Primitive

java.lang.Object
org.apache.harmony.security.asn1.ASN1Type
org.apache.harmony.security.asn1.ASN1Primitive
All Implemented Interfaces:
ASN1Constants
Direct Known Subclasses:
ASN1Boolean, ASN1Enumerated, ASN1Integer, ASN1Oid

public abstract class ASN1Primitive
extends ASN1Type
This abstract class is the super class for all primitive ASN.1 types
See Also:
ASN.1
  • Constructor Details

    • ASN1Primitive

      public ASN1Primitive​(int tagNumber)
  • Method Details

    • checkTag

      public final boolean checkTag​(int identifier)
      Tests provided identifier.
      Specified by:
      checkTag in class ASN1Type
      Parameters:
      identifier - identifier to be verified
      Returns:
      true if identifier correspond to primitive identifier of this ASN.1 type, otherwise false
    • encodeASN

      public void encodeASN​(BerOutputStream out)
      Description copied from class: ASN1Type
      Encodes ASN.1 type.
      Specified by:
      encodeASN in class ASN1Type