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)
      Retrieves validation key and verifies 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