Class JcaSignerInfoGeneratorBuilderBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilderBC
-
- All Implemented Interfaces:
IJcaSignerInfoGeneratorBuilder
public class JcaSignerInfoGeneratorBuilderBC extends java.lang.Object implements IJcaSignerInfoGeneratorBuilder
Wrapper class forJcaSignerInfoGeneratorBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder
jcaSignerInfoGeneratorBuilder
-
Constructor Summary
Constructors Constructor Description JcaSignerInfoGeneratorBuilderBC(IDigestCalculatorProvider calculatorProvider)
Creates new wrapper instance forJcaSignerInfoGeneratorBuilder
.JcaSignerInfoGeneratorBuilderBC(org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder jcaSignerInfoGeneratorBuilder)
Creates new wrapper instance forJcaSignerInfoGeneratorBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISignerInfoGenerator
build(IContentSigner signer, java.security.cert.X509Certificate cert)
Calls actualbuild
method for the wrapped JcaSignerInfoGeneratorBuilder object.boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder
getJcaSignerInfoGeneratorBuilder()
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Constructor Detail
-
JcaSignerInfoGeneratorBuilderBC
public JcaSignerInfoGeneratorBuilderBC(org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder jcaSignerInfoGeneratorBuilder)
Creates new wrapper instance forJcaSignerInfoGeneratorBuilder
.- Parameters:
jcaSignerInfoGeneratorBuilder
-JcaSignerInfoGeneratorBuilder
to be wrapped
-
JcaSignerInfoGeneratorBuilderBC
public JcaSignerInfoGeneratorBuilderBC(IDigestCalculatorProvider calculatorProvider)
Creates new wrapper instance forJcaSignerInfoGeneratorBuilder
.- Parameters:
calculatorProvider
- DigestCalculatorProvider wrapper to createJcaSignerInfoGeneratorBuilder
-
-
Method Detail
-
getJcaSignerInfoGeneratorBuilder
public org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder getJcaSignerInfoGeneratorBuilder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
JcaSignerInfoGeneratorBuilder
.
-
build
public ISignerInfoGenerator build(IContentSigner signer, java.security.cert.X509Certificate cert) throws OperatorCreationExceptionBC, java.security.cert.CertificateEncodingException
Calls actualbuild
method for the wrapped JcaSignerInfoGeneratorBuilder object.- Specified by:
build
in interfaceIJcaSignerInfoGeneratorBuilder
- Parameters:
signer
- ContentSigner wrappercert
- X509Certificate- Returns:
ISignerInfoGenerator
the wrapper for built SignerInfoGenerator object.- Throws:
java.security.cert.CertificateEncodingException
- if an error occurs while attempting to encode a certificate.OperatorCreationExceptionBC
-
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
-
-