Package org.bouncycastle.cms.jcajce
Class JcaSignerInfoVerifierBuilder
- java.lang.Object
-
- org.bouncycastle.cms.jcajce.JcaSignerInfoVerifierBuilder
-
public class JcaSignerInfoVerifierBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JcaSignerInfoVerifierBuilder(org.bouncycastle.operator.DigestCalculatorProvider digestProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignerInformationVerifier
build(java.security.cert.X509Certificate certificate)
SignerInformationVerifier
build(java.security.PublicKey pubKey)
SignerInformationVerifier
build(X509CertificateHolder certHolder)
JcaSignerInfoVerifierBuilder
setProvider(java.lang.String providerName)
JcaSignerInfoVerifierBuilder
setProvider(java.security.Provider provider)
JcaSignerInfoVerifierBuilder
setSignatureAlgorithmFinder(org.bouncycastle.operator.SignatureAlgorithmIdentifierFinder sigAlgIDFinder)
JcaSignerInfoVerifierBuilder
setSignatureAlgorithmNameGenerator(CMSSignatureAlgorithmNameGenerator sigAlgNameGen)
Override the default signature algorithm name generator.
-
-
-
Method Detail
-
setProvider
public JcaSignerInfoVerifierBuilder setProvider(java.security.Provider provider)
-
setProvider
public JcaSignerInfoVerifierBuilder setProvider(java.lang.String providerName)
-
setSignatureAlgorithmNameGenerator
public JcaSignerInfoVerifierBuilder setSignatureAlgorithmNameGenerator(CMSSignatureAlgorithmNameGenerator sigAlgNameGen)
Override the default signature algorithm name generator.- Parameters:
sigAlgNameGen
- the algorithm name generator to use.- Returns:
- the current builder.
-
setSignatureAlgorithmFinder
public JcaSignerInfoVerifierBuilder setSignatureAlgorithmFinder(org.bouncycastle.operator.SignatureAlgorithmIdentifierFinder sigAlgIDFinder)
-
build
public SignerInformationVerifier build(X509CertificateHolder certHolder) throws org.bouncycastle.operator.OperatorCreationException, java.security.cert.CertificateException
- Throws:
org.bouncycastle.operator.OperatorCreationException
java.security.cert.CertificateException
-
build
public SignerInformationVerifier build(java.security.cert.X509Certificate certificate) throws org.bouncycastle.operator.OperatorCreationException
- Throws:
org.bouncycastle.operator.OperatorCreationException
-
build
public SignerInformationVerifier build(java.security.PublicKey pubKey) throws org.bouncycastle.operator.OperatorCreationException
- Throws:
org.bouncycastle.operator.OperatorCreationException
-
-