Class UnwrapResult


  • public final class UnwrapResult
    extends Object
    Represents the details of key unwrap operation result.
    • Constructor Detail

      • UnwrapResult

        public UnwrapResult​(byte[] key,
                            KeyWrapAlgorithm algorithm,
                            String keyId)
        Creates the instance of KeyUnwrap Result holding the unwrapped key content.
        Parameters:
        key - The unwrapped key content.
        algorithm - The algorithm used for the operation
        keyId - The id of key used for the operation
    • Method Detail

      • getKey

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

        public KeyWrapAlgorithm getAlgorithm()
        Get the algorithm used for key wrap operation.
        Returns:
        The encryption algorithm used.
      • getKeyId

        public String getKeyId()
        Get the identifier of the key used for the key wrap encryption
        Returns:
        the key identifier