Interface DelegatedKey

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] cipherText, byte[] additionalAssociatedData, String algorithm)
      Decrypts the provided ciphertext and returns a byte-array containing the plaintext.
      byte[] encrypt​(byte[] plainText, byte[] additionalAssociatedData, String algorithm)
      Encrypts the provided plaintext and returns a byte-array containing the ciphertext.
      byte[] sign​(byte[] dataToSign, String algorithm)
      Calculates and returns a signature for dataToSign.
      Key unwrap​(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType, byte[] additionalAssociatedData, String algorithm)
      Unwraps (decrypts) the provided wrappedKey to recover the original key.
      boolean verify​(byte[] dataToSign, byte[] signature, String algorithm)
      Checks the provided signature for correctness.
      byte[] wrap​(Key key, byte[] additionalAssociatedData, String algorithm)
      Wraps (encrypts) the provided key to make it safe for storage or transmission.