Class JcaMTCCosignerVerifierProvider
- java.lang.Object
-
- org.bouncycastle.cert.plants.jcajce.JcaMTCCosignerVerifierProvider
-
- All Implemented Interfaces:
MTCCosignerVerifierProvider
public class JcaMTCCosignerVerifierProvider extends java.lang.Object implements MTCCosignerVerifierProvider
JCA-sideMTCCosignerVerifierProviderthat holds a table of cosigner trust anchor IDs mapped toMTCSignatureVerifierinstances.The convenience
JcaMTCCosignerVerifierProvider.Builder.addCosigner(byte[], PublicKey)overload wraps a JCAPublicKeyin aJcaMTCSignatureVerifier, auto-detecting the draft algorithm identifier from the key type:ECPublicKeywith a 256-bit field →ECDSA-P256-SHA256ECPublicKeywith a 384-bit field →ECDSA-P384-SHA384getAlgorithm()equal to"Ed25519"or"EdDSA"→Ed25519getAlgorithm()equal to"ML-DSA-44"/"ML-DSA-65"/"ML-DSA-87"→ same string
Callers needing a different algorithm string for the same key type, or a verifier from another module (e.g. a lightweight
BcMTCSignatureVerifier), can useJcaMTCCosignerVerifierProvider.Builder.addCosigner(byte[], MTCSignatureVerifier)directly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJcaMTCCosignerVerifierProvider.BuilderBuilder forJcaMTCCosignerVerifierProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MTCCosignerVerifierget(byte[] cosignerId)
-
-
-
Method Detail
-
get
public MTCCosignerVerifier get(byte[] cosignerId)
- Specified by:
getin interfaceMTCCosignerVerifierProvider- Parameters:
cosignerId- the binary trust anchor ID of the cosigner- Returns:
- a verifier for the cosigner, or
nullif the cosigner is unknown
-
-