Package org.bouncycastle.cert.plants.bc
Class BcMTCCosignerVerifierProvider.Builder
- java.lang.Object
-
- org.bouncycastle.cert.plants.bc.BcMTCCosignerVerifierProvider.Builder
-
- Enclosing class:
- BcMTCCosignerVerifierProvider
public static class BcMTCCosignerVerifierProvider.Builder extends java.lang.ObjectBuilder forBcMTCCosignerVerifierProvider. 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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BcMTCCosignerVerifierProvider.BuilderaddCosigner(byte[] cosignerId, MTCSignatureVerifier verifier)Register a cosigner with a pre-built signature verifier (either aBcMTCSignatureVerifieror any otherMTCSignatureVerifierimplementation such asorg.bouncycastle.cert.plants.jcajce.JcaMTCSignatureVerifier).BcMTCCosignerVerifierProvider.BuilderaddCosigner(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.BcMTCCosignerVerifierProviderbuild()
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException- if the public key type is unsupported
-
build
public BcMTCCosignerVerifierProvider build()
-
-