public interface ExternalKeyWrappingStrategy
KeyStoreParameters.EXTERNAL_KEY_WRAPPING_STRATEGY
option.Modifier and Type | Method and Description |
---|---|
ByteSequence |
unwrapKey(ByteSequence wrappedKey)
Unwraps the provided
wrapped key. |
ByteSequence |
wrapKey(ByteSequence unwrappedKey)
Wraps the provided encoded key.
|
ByteSequence wrapKey(ByteSequence unwrappedKey) throws LocalizedKeyStoreException
unwrappedKey
- The non-null
key to be wrapped. The format of the unwrapped key is unspecified.null
protected key. The format of the returned wrapped key is implementation defined.LocalizedKeyStoreException
- If an unexpected problem occurred when wrapping the key.ByteSequence unwrapKey(ByteSequence wrappedKey) throws LocalizedKeyStoreException
wrapped
key.wrappedKey
- The non-null
key to be unwrapped. The format of the wrapped key is implementation
defined and must have been produced via a call to ExternalKeyWrappingStrategy.wrapKey(ByteSequence)
.null
unwrapped key which must contain exactly the same content passed to ExternalKeyWrappingStrategy.wrapKey(ByteSequence)
.LocalizedKeyStoreException
- If an unexpected problem occurred when unwrapping the key.Copyright © 2010-2018, ForgeRock All Rights Reserved.