Class JcaMTCSignatureVerifier.Builder
java.lang.Object
org.bouncycastle.cert.plants.jcajce.JcaMTCSignatureVerifier.Builder
- Enclosing class:
JcaMTCSignatureVerifier
Builder for
JcaMTCSignatureVerifier. Selects the JCA provider
used to obtain the underlying Signature instance;
the draft algorithm identifier is either detected from the public key
type (build(PublicKey) — see JcaMTCSignatureVerifier.detectAlgorithm(PublicKey)) or
supplied explicitly (build(String, PublicKey)).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplicit-algorithm overload for cases where the key-type detection inbuild(PublicKey)doesn't apply (e.g. a key whosegetAlgorithm()doesn't carry the MTC algorithm name).setProvider(String providerName) setProvider(Provider provider)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setProvider
-
setProvider
-
build
- Parameters:
publicKey- JCA public key whose type determines the MTC signature algorithm string (seeJcaMTCSignatureVerifier.detectAlgorithm(PublicKey))- Throws:
IllegalArgumentException- if the public key type is unsupported
-
build
Explicit-algorithm overload for cases where the key-type detection inbuild(PublicKey)doesn't apply (e.g. a key whosegetAlgorithm()doesn't carry the MTC algorithm name).- Parameters:
algorithm- one of theMTCSignatureAlgorithmconstantspublicKey- JCA public key foralgorithm
-