Interface KeyGetter


public interface KeyGetter
Key getter.
Since:
1.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int keyOperation, int algorithm, byte[] keyID)
    Get a key suitable for the key operation with the algorithm.
  • Method Details

    • get

      Key get(int keyOperation, int algorithm, byte[] keyID) throws COSEException
      Get a key suitable for the key operation with the algorithm.
      Parameters:
      keyOperation - The intended key operation such as SIGN and VERIFY.
      algorithm - The integer identifier of the algorithm for the key operation such as ES256.
      keyID - A key ID of the target key. This may be null.
      Returns:
      A key suitable for the key operation and the algorithm. null if a suitable key is not available.
      Throws:
      COSEException