Class CertificateExtension

  • All Implemented Interfaces:
    java.lang.Cloneable, org.bouncycastle.asn1.ASN1Encodable

    public class CertificateExtension
    extends OidAndValue<org.bouncycastle.asn1.ASN1Object>
    implements org.bouncycastle.asn1.ASN1Encodable
    Stores DER form of a certificate extension along with its OID and flag if the extension is critical.
    Author:
    K. Benedyczak
    • Constructor Summary

      Constructors 
      Constructor Description
      CertificateExtension​(byte[] encoded)  
      CertificateExtension​(java.lang.String oid, org.bouncycastle.asn1.ASN1Object value, boolean critical)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCritical()  
      void setCritical​(boolean critical)  
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CertificateExtension

        public CertificateExtension​(java.lang.String oid,
                                    org.bouncycastle.asn1.ASN1Object value,
                                    boolean critical)
      • CertificateExtension

        public CertificateExtension​(byte[] encoded)
    • Method Detail

      • isCritical

        public boolean isCritical()
      • setCritical

        public void setCritical​(boolean critical)
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
             Extension         ::=   SEQUENCE {
                extnId            EXTENSION.&id ({ExtensionSet}),
                critical          BOOLEAN DEFAULT FALSE,
                extnValue         OCTET STRING }
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable