Interface CBORAsymKeyValidator.KeyLocator

Enclosing class:
CBORAsymKeyValidator

public static interface CBORAsymKeyValidator.KeyLocator
Interface for dynamic key retrieval.
  • 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 object
      optionalKeyId - KeyId or null
      algorithm - Signature algorithm
      Returns:
      Validation key