Class Extension

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

    
    public class Extension
    extends ASN1Object
                        

    an object for the elements in the X.509 V3 extension block.

    • Constructor Detail

      • Extension

        Extension(ASN1ObjectIdentifier extnId, ASN1Boolean critical, ASN1OctetString value)
        Constructor using an ASN1Boolean and an OCTET STRING for the value.
        Parameters:
        extnId - the OID associated with this extension.
        critical - will evaluate to true if the extension is critical, false otherwise.
        value - the extension's value wrapped in an OCTET STRING.
      • Extension

        Extension(ASN1ObjectIdentifier extnId, boolean critical, Array<byte> value)
        Constructor using a byte[] for the value.
        Parameters:
        extnId - the OID associated with this extension.
        critical - true if the extension is critical, false otherwise.
        value - the extension's value as a byte[] to be wrapped in an OCTET STRING.
      • Extension

        Extension(ASN1ObjectIdentifier extnId, boolean critical, ASN1OctetString value)
        Constructor using an OCTET STRING for the value.
        Parameters:
        extnId - the OID associated with this extension.
        critical - true if the extension is critical, false otherwise.
        value - the extension's value wrapped in an OCTET STRING.