Package org.webpki.cbor
Interface CBORAsymKeyValidator.KeyLocator
- Enclosing class:
CBORAsymKeyValidator
public static interface CBORAsymKeyValidator.KeyLocator
Interface for dynamic key retrieval.
-
Method Summary
Modifier and TypeMethodDescriptionlocate
(PublicKey optionalPublicKey, CBORObject optionalKeyId, AsymSignatureAlgorithms algorithm) Get validation key and verify meta data.
-
Method Details
-
locate
PublicKey locate(PublicKey optionalPublicKey, CBORObject optionalKeyId, AsymSignatureAlgorithms algorithm) Get validation key and verify meta data.An implementation is supposed to throw an exception if it does not find a matching key or if the supplied algorithm does not meet the policy.
- Parameters:
optionalPublicKey
- Optional public key found in the signature objectoptionalKeyId
- KeyId ornull
algorithm
- Signature algorithm- Returns:
- Validation key
-