Class ASN1Object

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.asn1.ASN1Encodable , io.anyline.nfc.bouncycastle.util.Encodable

    
    public abstract class ASN1Object
     implements ASN1Encodable, Encodable
                        

    Base class for defining an ASN.1 object.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ASN1Object()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • ASN1Object

        ASN1Object()
    • Method Detail

      • getEncoded

         Array<byte> getEncoded()

        Return the default BER or DER encoding for this object.

        Returns:

        BER/DER byte encoded object.

      • getEncoded

         Array<byte> getEncoded(String encoding)

        Return either the default for "BER" or a DER encoding if "DER" is specified.

        Parameters:
        encoding - name of encoding to use.
        Returns:

        byte encoded object.

      • toASN1Primitive

         abstract ASN1Primitive toASN1Primitive()

        Method providing a primitive representation of this object suitable for encoding.

        Returns:

        a primitive representation of this object.