org.bouncycastle.operator.jcajce
Class JcaContentVerifierProviderBuilder
java.lang.Object
org.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder
- public class JcaContentVerifierProviderBuilder
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcaContentVerifierProviderBuilder
public JcaContentVerifierProviderBuilder()
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 a
JcaContentSignerBuilder given a ContextParameterSpec.
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
public JcaContentVerifierProviderBuilder setProvider(java.security.Provider provider)
setProvider
public JcaContentVerifierProviderBuilder setProvider(java.lang.String providerName)
build
public ContentVerifierProvider build(X509CertificateHolder certHolder)
throws OperatorCreationException,
java.security.cert.CertificateException
- Throws:
OperatorCreationException
java.security.cert.CertificateException
build
public ContentVerifierProvider build(java.security.cert.X509Certificate certificate)
throws OperatorCreationException
- Throws:
OperatorCreationException
build
public ContentVerifierProvider build(java.security.PublicKey publicKey)
throws OperatorCreationException
- Throws:
OperatorCreationException
build
public ContentVerifierProvider build(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
throws OperatorCreationException
- Throws:
OperatorCreationException