Package com.itextpdf.bouncycastle.cert
Class X509v2CRLBuilderBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.X509v2CRLBuilderBC
-
- All Implemented Interfaces:
IX509v2CRLBuilder
public class X509v2CRLBuilderBC extends java.lang.Object implements IX509v2CRLBuilder
Wrapper class forX509v2CRLBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.X509v2CRLBuilder
builder
-
Constructor Summary
Constructors Constructor Description X509v2CRLBuilderBC(IX500Name x500Name, java.util.Date date)
Creates new wrapper instance forX509v2CRLBuilder
.X509v2CRLBuilderBC(org.bouncycastle.cert.X509v2CRLBuilder builder)
Creates new wrapper instance forX509v2CRLBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IX509v2CRLBuilder
addCRLEntry(java.math.BigInteger bigInteger, java.util.Date date, int i)
Calls actualaddCRLEntry
method for the wrapped X509v2CRLBuilder object.IX509v2CRLBuilder
addExtension(IASN1ObjectIdentifier objectIdentifier, boolean isCritical, IASN1Encodable extension)
Calls actualaddExtension
method for the wrapped X509v2CRLBuilder object.IX509CRLHolder
build(IContentSigner signer)
Calls actualbuild
method for the wrapped X509v2CRLBuilder object.boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509v2CRLBuilder
getBuilder()
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.IX509v2CRLBuilder
setNextUpdate(java.util.Date nextUpdate)
Calls actualsetNextUpdate
method for the wrapped X509v2CRLBuilder object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Constructor Detail
-
X509v2CRLBuilderBC
public X509v2CRLBuilderBC(org.bouncycastle.cert.X509v2CRLBuilder builder)
Creates new wrapper instance forX509v2CRLBuilder
.- Parameters:
builder
-X509v2CRLBuilder
to be wrapped
-
X509v2CRLBuilderBC
public X509v2CRLBuilderBC(IX500Name x500Name, java.util.Date date)
Creates new wrapper instance forX509v2CRLBuilder
.- Parameters:
x500Name
- X500Name wrapper to createX509v2CRLBuilder
date
- Date to createX509v2CRLBuilder
-
-
Method Detail
-
getBuilder
public org.bouncycastle.cert.X509v2CRLBuilder getBuilder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
X509v2CRLBuilder
.
-
addCRLEntry
public IX509v2CRLBuilder addCRLEntry(java.math.BigInteger bigInteger, java.util.Date date, int i)
Calls actualaddCRLEntry
method for the wrapped X509v2CRLBuilder object.- Specified by:
addCRLEntry
in interfaceIX509v2CRLBuilder
- Parameters:
bigInteger
- serial number of revoked certificatedate
- date of certificate revocationi
- the reason code, as indicated in CRLReason, i.e CRLReason.keyCompromise, or 0 if not to be used- Returns:
IX509v2CRLBuilder
the current wrapper object.
-
addExtension
public IX509v2CRLBuilder addExtension(IASN1ObjectIdentifier objectIdentifier, boolean isCritical, IASN1Encodable extension) throws java.io.IOException
Calls actualaddExtension
method for the wrapped X509v2CRLBuilder object.- Specified by:
addExtension
in interfaceIX509v2CRLBuilder
- Parameters:
objectIdentifier
- extension object identifierisCritical
- specifies if extension is critical or notextension
- encoded extension value- Returns:
IX509v2CRLBuilder
the current wrapper object.- Throws:
java.io.IOException
- if an I/O error occurs.
-
setNextUpdate
public IX509v2CRLBuilder setNextUpdate(java.util.Date nextUpdate)
Calls actualsetNextUpdate
method for the wrapped X509v2CRLBuilder object.- Specified by:
setNextUpdate
in interfaceIX509v2CRLBuilder
- Parameters:
nextUpdate
- date of next CRL update- Returns:
IX509v2CRLBuilder
the current wrapper object.
-
build
public IX509CRLHolder build(IContentSigner signer)
Calls actualbuild
method for the wrapped X509v2CRLBuilder object.- Specified by:
build
in interfaceIX509v2CRLBuilder
- Parameters:
signer
- ContentSigner wrapper- Returns:
IX509CRLHolder
the wrapper for built X509CRLHolder object.
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoString
method call to the wrapped object.- Overrides:
toString
in classjava.lang.Object
-
-