Interface CBORSymKeyDecrypter.KeyLocator

Enclosing class:
CBORSymKeyDecrypter

public static interface CBORSymKeyDecrypter.KeyLocator
Interface for dynamic key retrieval.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    locate(CBORObject optionalKeyId, ContentEncryptionAlgorithms contentEncryptionAlgorithm)
    Lookup of secret decryption key.
  • Method Details

    • locate

      byte[] locate(CBORObject optionalKeyId, ContentEncryptionAlgorithms contentEncryptionAlgorithm)
      Lookup of secret decryption key.

      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:
      optionalKeyId - Optional key Id found in the encryption object
      contentEncryptionAlgorithm - The requested content encryption algorithm
      Returns:
      Decryption key