Package com.itextpdf.bouncycastle.cert
Class X509v2CRLBuilderBC
java.lang.Object
com.itextpdf.bouncycastle.cert.X509v2CRLBuilderBC
- All Implemented Interfaces:
-
IX509v2CRLBuilder
Wrapper class for
X509v2CRLBuilder.
-
Constructor Summary
ConstructorsConstructorDescriptionX509v2CRLBuilderBC(IX500Name x500Name, Date date) Creates new wrapper instance forX509v2CRLBuilder.X509v2CRLBuilderBC(org.bouncycastle.cert.X509v2CRLBuilder builder) Creates new wrapper instance forX509v2CRLBuilder. -
Method Summary
Modifier and TypeMethodDescriptionaddCRLEntry(BigInteger bigInteger, Date date, int i) Calls actualaddCRLEntrymethod for the wrapped X509v2CRLBuilder object.addExtension(IASN1ObjectIdentifier objectIdentifier, boolean isCritical, IASN1Encodable extension) Calls actualaddExtensionmethod for the wrapped X509v2CRLBuilder object.build(IContentSigner signer) Calls actualbuildmethod for the wrapped X509v2CRLBuilder object.booleanIndicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509v2CRLBuilderGets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.setNextUpdate(Date nextUpdate) Calls actualsetNextUpdatemethod for the wrapped X509v2CRLBuilder object.toString()DelegatestoStringmethod call to the wrapped object.
-
Constructor Details
-
X509v2CRLBuilderBC
public X509v2CRLBuilderBC(org.bouncycastle.cert.X509v2CRLBuilder builder) Creates new wrapper instance forX509v2CRLBuilder.- Parameters:
-
builder-X509v2CRLBuilderto be wrapped
-
X509v2CRLBuilderBC
Creates new wrapper instance forX509v2CRLBuilder.- Parameters:
-
x500Name- X500Name wrapper to createX509v2CRLBuilder -
date- Date to createX509v2CRLBuilder
-
-
Method Details
-
getBuilder
public org.bouncycastle.cert.X509v2CRLBuilder getBuilder()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
X509v2CRLBuilder.
-
addCRLEntry
Calls actualaddCRLEntrymethod for the wrapped X509v2CRLBuilder object.- Specified by:
-
addCRLEntryin interfaceIX509v2CRLBuilder - Parameters:
-
bigInteger- serial number of revoked certificate -
date- date of certificate revocation -
i- the reason code, as indicated in CRLReason, i.e CRLReason.keyCompromise, or 0 if not to be used - Returns:
-
IX509v2CRLBuilderthe current wrapper object.
-
addExtension
public IX509v2CRLBuilder addExtension(IASN1ObjectIdentifier objectIdentifier, boolean isCritical, IASN1Encodable extension) throws IOException Calls actualaddExtensionmethod for the wrapped X509v2CRLBuilder object.- Specified by:
-
addExtensionin interfaceIX509v2CRLBuilder - Parameters:
-
objectIdentifier- extension object identifier -
isCritical- specifies if extension is critical or not -
extension- encoded extension value - Returns:
-
IX509v2CRLBuilderthe current wrapper object. - Throws:
-
IOException- if an I/O error occurs.
-
setNextUpdate
Calls actualsetNextUpdatemethod for the wrapped X509v2CRLBuilder object.- Specified by:
-
setNextUpdatein interfaceIX509v2CRLBuilder - Parameters:
-
nextUpdate- date of next CRL update - Returns:
-
IX509v2CRLBuilderthe current wrapper object.
-
build
Calls actualbuildmethod for the wrapped X509v2CRLBuilder object.- Specified by:
-
buildin interfaceIX509v2CRLBuilder - Parameters:
-
signer- ContentSigner wrapper - Returns:
-
IX509CRLHolderthe wrapper for built X509CRLHolder object.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoStringmethod call to the wrapped object.
-