Class ExtensionBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.x509.ExtensionBC
All Implemented Interfaces:
IASN1Encodable, IExtension

public class ExtensionBC extends ASN1EncodableBC implements IExtension
Wrapper class for Extension.
  • Constructor Details

    • ExtensionBC

      public ExtensionBC (org.bouncycastle.asn1.x509.Extension extension)
      Creates new wrapper instance for Extension.
      Parameters:
      extension - Extension to be wrapped
  • Method Details

    • getInstance

      public static ExtensionBC getInstance()
      Gets wrapper instance.
      Returns:
      ExtensionBC instance.
    • getExtension

      public org.bouncycastle.asn1.x509.Extension getExtension()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped Extension.
    • getCRlDistributionPoints

      public IASN1ObjectIdentifier getCRlDistributionPoints()
      Gets cRLDistributionPoints constant for the wrapped Extension.
      Specified by:
      getCRlDistributionPoints in interface IExtension
      Returns:
      Extension.cRLDistributionPoints wrapper.
    • getIssuingDistributionPoint

      public IASN1ObjectIdentifier getIssuingDistributionPoint()
      Gets issuingDistributionPoint constant for the wrapped Extension.
      Specified by:
      getIssuingDistributionPoint in interface IExtension
      Returns:
      Extension.issuingDistributionPoint wrapper.
    • getAuthorityInfoAccess

      public IASN1ObjectIdentifier getAuthorityInfoAccess()
      Gets authorityInfoAccess constant for the wrapped Extension.
      Specified by:
      getAuthorityInfoAccess in interface IExtension
      Returns:
      Extension.authorityInfoAccess wrapper.
    • getBasicConstraints

      public IASN1ObjectIdentifier getBasicConstraints()
      Gets basicConstraints constant for the wrapped Extension.
      Specified by:
      getBasicConstraints in interface IExtension
      Returns:
      Extension.basicConstraints wrapper.
    • getKeyUsage

      public IASN1ObjectIdentifier getKeyUsage()
      Gets keyUsage constant for the wrapped Extension.
      Specified by:
      getKeyUsage in interface IExtension
      Returns:
      Extension.keyUsage wrapper.
    • getExtendedKeyUsage

      public IASN1ObjectIdentifier getExtendedKeyUsage()
      Gets extendedKeyUsage constant for the wrapped Extension.
      Specified by:
      getExtendedKeyUsage in interface IExtension
      Returns:
      Extension.extendedKeyUsage wrapper.
    • getAuthorityKeyIdentifier

      public IASN1ObjectIdentifier getAuthorityKeyIdentifier()
      Gets authorityKeyIdentifier constant for the wrapped Extension.
      Specified by:
      getAuthorityKeyIdentifier in interface IExtension
      Returns:
      Extension.authorityKeyIdentifier wrapper.
    • getSubjectKeyIdentifier

      public IASN1ObjectIdentifier getSubjectKeyIdentifier()
      Gets subjectKeyIdentifier constant for the wrapped Extension.
      Specified by:
      getSubjectKeyIdentifier in interface IExtension
      Returns:
      Extension.subjectKeyIdentifier wrapper.
    • getExpiredCertsOnCRL

      public IASN1ObjectIdentifier getExpiredCertsOnCRL()
      Gets expiredCertsOnCRL constant for the wrapped Extension.
      Specified by:
      getExpiredCertsOnCRL in interface IExtension
      Returns:
      Extension.expiredCertsOnCRL wrapper.