Class BcMTCCosignerVerifierProvider.Builder
java.lang.Object
org.bouncycastle.cert.plants.bc.BcMTCCosignerVerifierProvider.Builder
- Enclosing class:
BcMTCCosignerVerifierProvider
Builder for
BcMTCCosignerVerifierProvider. Cosigner trust anchor
IDs are the binary form per Section 3 of draft-ietf-tls-trust-anchor-ids
(the base-128 OID-component bytes, without the ASN.1 RELATIVE-OID tag).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCosigner(byte[] cosignerId, MTCSignatureVerifier verifier) Register a cosigner with a pre-built signature verifier (either aBcMTCSignatureVerifieror any otherMTCSignatureVerifierimplementation such asorg.bouncycastle.cert.plants.jcajce.JcaMTCSignatureVerifier).addCosigner(byte[] cosignerId, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) Register a cosigner with a lightweight public key; the draft algorithm identifier is detected from the key type.build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addCosigner
public BcMTCCosignerVerifierProvider.Builder addCosigner(byte[] cosignerId, MTCSignatureVerifier verifier) Register a cosigner with a pre-built signature verifier (either aBcMTCSignatureVerifieror any otherMTCSignatureVerifierimplementation such asorg.bouncycastle.cert.plants.jcajce.JcaMTCSignatureVerifier). -
addCosigner
public BcMTCCosignerVerifierProvider.Builder addCosigner(byte[] cosignerId, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) Register a cosigner with a lightweight public key; the draft algorithm identifier is detected from the key type.- Throws:
IllegalArgumentException- if the public key type is unsupported
-
build
-