Class WrapResult


  • public final class WrapResult
    extends Object
    Represents the details of wrap operation result.
    • Constructor Detail

      • WrapResult

        public WrapResult​(byte[] encryptedKey,
                          KeyWrapAlgorithm algorithm,
                          String keyId)
        Creates the instance of KeyWrapResult holding the key wrap operation response details.
        Parameters:
        encryptedKey - The unwrapped key content.
        algorithm - The algorithm used to wrap the key content.
        keyId - The identifier of the key usd for the key wrap operation.
    • Method Detail

      • getEncryptedKey

        public byte[] getEncryptedKey()
        Get the encrypted key content.
        Returns:
        The encrypted key.
      • getAlgorithm

        public KeyWrapAlgorithm getAlgorithm()
        Get the key wrap algorithm used to wrap the key content.
        Returns:
        The key wrap algorithm.
      • getKeyId

        public String getKeyId()
        Get the identifier of the key used to do encryption
        Returns:
        the key identifier