public class JcaMTCCosignerVerifierProvider extends java.lang.Object implements MTCCosignerVerifierProvider
MTCCosignerVerifierProvider that holds a table of cosigner
trust anchor IDs mapped to MTCSignatureVerifier instances.
The convenience JcaMTCCosignerVerifierProvider.Builder.addCosigner(byte[], PublicKey) overload
wraps a JCA PublicKey in a JcaMTCSignatureVerifier,
auto-detecting the draft algorithm identifier from the key type:
ECPublicKey with a 256-bit field → ECDSA-P256-SHA256ECPublicKey with 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 stringCallers needing a different algorithm string for the same key type, or a
verifier from another module (e.g. a lightweight BcMTCSignatureVerifier),
can use JcaMTCCosignerVerifierProvider.Builder.addCosigner(byte[], MTCSignatureVerifier) directly.
| Modifier and Type | Class and Description |
|---|---|
static class |
JcaMTCCosignerVerifierProvider.Builder
Builder for
JcaMTCCosignerVerifierProvider. |
| Modifier and Type | Method and Description |
|---|---|
MTCCosignerVerifier |
get(byte[] cosignerId) |
public MTCCosignerVerifier get(byte[] cosignerId)
get in interface MTCCosignerVerifierProvidercosignerId - the binary trust anchor ID of the cosignernull if the cosigner is unknown