Class JcaContentVerifierProviderBuilder
java.lang.Object
org.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(X509Certificate certificate) build(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey) build(X509CertificateHolder certHolder) setContext(org.bouncycastle.jcajce.spec.ContextParameterSpec context) Set the context string the signatures were made with, for an ML-DSA, SLH-DSA or composite signature made through aJcaContentSignerBuildergiven aContextParameterSpec.setProvider(String providerName) setProvider(Provider provider)
-
Constructor Details
-
JcaContentVerifierProviderBuilder
public JcaContentVerifierProviderBuilder()
-
-
Method Details
-
setContext
public JcaContentVerifierProviderBuilder setContext(org.bouncycastle.jcajce.spec.ContextParameterSpec context) Set the context string the signatures were made with, for an ML-DSA, SLH-DSA or composite signature made through aJcaContentSignerBuildergiven aContextParameterSpec. The context is not recorded in the signature algorithm identifier, so it must be supplied here; the X.509 and CMS profiles for these algorithms require the empty context, which is what a builder with no context verifies against.- Parameters:
context- the context string spec, null for the empty context.- Returns:
- the current builder.
-
setProvider
-
setProvider
-
build
public ContentVerifierProvider build(X509CertificateHolder certHolder) throws OperatorCreationException, CertificateException -
build
- Throws:
OperatorCreationException
-
build
- Throws:
OperatorCreationException
-
build
public ContentVerifierProvider build(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey) throws OperatorCreationException - Throws:
OperatorCreationException
-