Unwrap a previously wrapped key.
This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.) It may be overridden by a provider to unwrap a previously wrapped key. Such an override is expected to throw an InvalidKeyException if the given wrapped key cannot be unwrapped. If this method is not overridden, it always throws an UnsupportedOperationException.
wrappedKey | the key to be unwrapped. | |
wrappedKeyAlgorithm | the algorithm associated with the wrapped key. | |
wrappedKeyType | the type of the wrapped key. This is one of
SECRET_KEY, PRIVATE_KEY, or
PUBLIC_KEY. |
NoSuchAlgorithmException | if no installed providers
can create keys of type wrappedKeyType for the
wrappedKeyAlgorithm. | |
InvalidKeyException | if wrappedKey does not
represent a wrapped key of type wrappedKeyType for
the wrappedKeyAlgorithm. |
Diagram: Cipher