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 forExtension
.
-
-
Field Summary
Fields Modifier and Type Field Description private static ASN1ObjectIdentifierBC
AUTHORITY_INFO_ACCESS
private static ASN1ObjectIdentifierBC
AUTHORITY_KEY_IDENTIFIER
private static ASN1ObjectIdentifierBC
BASIC_CONSTRAINTS
private static ASN1ObjectIdentifierBC
CRL_DISTRIBUTION_POINTS
private static IASN1ObjectIdentifier
EXPIRED_CERTS_ON_CRL
private static ASN1ObjectIdentifierBC
EXTENDED_KEY_USAGE
private static ExtensionBC
INSTANCE
private static ASN1ObjectIdentifierBC
ISSUING_DISTRIBUTION_POINT
private static ASN1ObjectIdentifierBC
KEY_USAGE
private static ASN1ObjectIdentifierBC
SUBJECT_KEY_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description ExtensionBC(org.bouncycastle.asn1.x509.Extension extension)
Creates new wrapper instance forExtension
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IASN1ObjectIdentifier
getAuthorityInfoAccess()
GetsauthorityInfoAccess
constant for the wrapped Extension.IASN1ObjectIdentifier
getAuthorityKeyIdentifier()
GetsauthorityKeyIdentifier
constant for the wrapped Extension.IASN1ObjectIdentifier
getBasicConstraints()
GetsbasicConstraints
constant for the wrapped Extension.IASN1ObjectIdentifier
getCRlDistributionPoints()
GetscRLDistributionPoints
constant for the wrapped Extension.IASN1ObjectIdentifier
getExpiredCertsOnCRL()
GetsexpiredCertsOnCRL
constant for the wrapped Extension.IASN1ObjectIdentifier
getExtendedKeyUsage()
GetsextendedKeyUsage
constant for the wrapped Extension.org.bouncycastle.asn1.x509.Extension
getExtension()
Gets actual org.bouncycastle object being wrapped.static ExtensionBC
getInstance()
Gets wrapper instance.IASN1ObjectIdentifier
getIssuingDistributionPoint()
GetsissuingDistributionPoint
constant for the wrapped Extension.IASN1ObjectIdentifier
getKeyUsage()
GetskeyUsage
constant for the wrapped Extension.IASN1ObjectIdentifier
getSubjectKeyIdentifier()
GetssubjectKeyIdentifier
constant for the wrapped Extension.-
Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
-
-
-
Field Detail
-
INSTANCE
private static final ExtensionBC INSTANCE
-
CRL_DISTRIBUTION_POINTS
private static final ASN1ObjectIdentifierBC CRL_DISTRIBUTION_POINTS
-
ISSUING_DISTRIBUTION_POINT
private static final ASN1ObjectIdentifierBC ISSUING_DISTRIBUTION_POINT
-
AUTHORITY_INFO_ACCESS
private static final ASN1ObjectIdentifierBC AUTHORITY_INFO_ACCESS
-
BASIC_CONSTRAINTS
private static final ASN1ObjectIdentifierBC BASIC_CONSTRAINTS
-
KEY_USAGE
private static final ASN1ObjectIdentifierBC KEY_USAGE
-
EXTENDED_KEY_USAGE
private static final ASN1ObjectIdentifierBC EXTENDED_KEY_USAGE
-
AUTHORITY_KEY_IDENTIFIER
private static final ASN1ObjectIdentifierBC AUTHORITY_KEY_IDENTIFIER
-
SUBJECT_KEY_IDENTIFIER
private static final ASN1ObjectIdentifierBC SUBJECT_KEY_IDENTIFIER
-
EXPIRED_CERTS_ON_CRL
private static final IASN1ObjectIdentifier EXPIRED_CERTS_ON_CRL
-
-
Method Detail
-
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()
GetscRLDistributionPoints
constant for the wrapped Extension.- Specified by:
getCRlDistributionPoints
in interfaceIExtension
- Returns:
- Extension.cRLDistributionPoints wrapper.
-
getIssuingDistributionPoint
public IASN1ObjectIdentifier getIssuingDistributionPoint()
GetsissuingDistributionPoint
constant for the wrapped Extension.- Specified by:
getIssuingDistributionPoint
in interfaceIExtension
- Returns:
- Extension.issuingDistributionPoint wrapper.
-
getAuthorityInfoAccess
public IASN1ObjectIdentifier getAuthorityInfoAccess()
GetsauthorityInfoAccess
constant for the wrapped Extension.- Specified by:
getAuthorityInfoAccess
in interfaceIExtension
- Returns:
- Extension.authorityInfoAccess wrapper.
-
getBasicConstraints
public IASN1ObjectIdentifier getBasicConstraints()
GetsbasicConstraints
constant for the wrapped Extension.- Specified by:
getBasicConstraints
in interfaceIExtension
- Returns:
- Extension.basicConstraints wrapper.
-
getKeyUsage
public IASN1ObjectIdentifier getKeyUsage()
GetskeyUsage
constant for the wrapped Extension.- Specified by:
getKeyUsage
in interfaceIExtension
- Returns:
- Extension.keyUsage wrapper.
-
getExtendedKeyUsage
public IASN1ObjectIdentifier getExtendedKeyUsage()
GetsextendedKeyUsage
constant for the wrapped Extension.- Specified by:
getExtendedKeyUsage
in interfaceIExtension
- Returns:
- Extension.extendedKeyUsage wrapper.
-
getAuthorityKeyIdentifier
public IASN1ObjectIdentifier getAuthorityKeyIdentifier()
GetsauthorityKeyIdentifier
constant for the wrapped Extension.- Specified by:
getAuthorityKeyIdentifier
in interfaceIExtension
- Returns:
- Extension.authorityKeyIdentifier wrapper.
-
getSubjectKeyIdentifier
public IASN1ObjectIdentifier getSubjectKeyIdentifier()
GetssubjectKeyIdentifier
constant for the wrapped Extension.- Specified by:
getSubjectKeyIdentifier
in interfaceIExtension
- Returns:
- Extension.subjectKeyIdentifier wrapper.
-
getExpiredCertsOnCRL
public IASN1ObjectIdentifier getExpiredCertsOnCRL()
GetsexpiredCertsOnCRL
constant for the wrapped Extension.- Specified by:
getExpiredCertsOnCRL
in interfaceIExtension
- Returns:
- Extension.expiredCertsOnCRL wrapper.
-
-