Class Extension

    • Field Detail

      • subjectDirectoryAttributes

        public static final ASN1ObjectIdentifier subjectDirectoryAttributes
        Subject Directory Attributes
      • subjectKeyIdentifier

        public static final ASN1ObjectIdentifier subjectKeyIdentifier
        Subject Key Identifier
      • privateKeyUsagePeriod

        public static final ASN1ObjectIdentifier privateKeyUsagePeriod
        Private Key Usage Period
      • subjectAlternativeName

        public static final ASN1ObjectIdentifier subjectAlternativeName
        Subject Alternative Name
      • issuerAlternativeName

        public static final ASN1ObjectIdentifier issuerAlternativeName
        Issuer Alternative Name
      • issuingDistributionPoint

        public static final ASN1ObjectIdentifier issuingDistributionPoint
        Issuing Distribution Point
      • cRLDistributionPoints

        public static final ASN1ObjectIdentifier cRLDistributionPoints
        CRL Distribution Points
      • certificatePolicies

        public static final ASN1ObjectIdentifier certificatePolicies
        Certificate Policies
      • authorityKeyIdentifier

        public static final ASN1ObjectIdentifier authorityKeyIdentifier
        Authority Key Identifier
      • authorityInfoAccess

        public static final ASN1ObjectIdentifier authorityInfoAccess
        Authority Info Access
      • auditIdentity

        public static final ASN1ObjectIdentifier auditIdentity
        Audit identity extension in attribute certificates.
      • noRevAvail

        public static final ASN1ObjectIdentifier noRevAvail
        NoRevAvail extension in attribute certificates.
      • targetInformation

        public static final ASN1ObjectIdentifier targetInformation
        TargetInformation extension in attribute certificates.
      • expiredCertsOnCRL

        public static final ASN1ObjectIdentifier expiredCertsOnCRL
        Expired Certificates on CRL extension
      • subjectAltPublicKeyInfo

        public static final ASN1ObjectIdentifier subjectAltPublicKeyInfo
        the subject’s alternative public key information
      • altSignatureAlgorithm

        public static final ASN1ObjectIdentifier altSignatureAlgorithm
        the algorithm identifier for the alternative digital signature algorithm.
      • altSignatureValue

        public static final ASN1ObjectIdentifier altSignatureValue
        alternative signature shall be created by the issuer using its alternative private key.
      • deltaCertificateDescriptor

        public static final ASN1ObjectIdentifier deltaCertificateDescriptor
        delta certificate extension - prototype value will change!
    • Constructor Detail

      • Extension

        public 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

        public Extension​(ASN1ObjectIdentifier extnId,
                         boolean critical,
                         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

        public 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.
    • Method Detail

      • create

        public static Extension create​(ASN1ObjectIdentifier extnId,
                                       boolean critical,
                                       ASN1Encodable value)
                                throws java.io.IOException
        Helper method to create an extension from any ASN.1 encodable object.
        Parameters:
        extnId - the OID associated with this extension.
        critical - true if the extension is critical, false otherwise.
        value - the value to be encoded into the extension's OCTET STRING.
        Returns:
        a new Extension with the encoding of value in the bytes of the extension's OCTET STRING.
        Throws:
        java.io.IOException - if the value cannot be encoded into bytes.
      • getInstance

        public static Extension getInstance​(java.lang.Object obj)
      • isCritical

        public boolean isCritical()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class ASN1Object