Package org.forgerock.opendj.security
Interface ExternalKeyWrappingStrategy
-
public interface ExternalKeyWrappingStrategyA service provider interface for externalizing the strategy used for wrapping individual private/secret keys. Applications can configure an LDAP keystore to delegate key wrapping responsibilities by setting theKeyStoreParameters.EXTERNAL_KEY_WRAPPING_STRATEGYoption.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteSequenceunwrapKey(ByteSequence wrappedKey)Unwraps the providedwrappedkey.ByteSequencewrapKey(ByteSequence unwrappedKey)Wraps the provided encoded key.
-
-
-
Method Detail
-
wrapKey
ByteSequence wrapKey(ByteSequence unwrappedKey)
Wraps the provided encoded key.- Parameters:
unwrappedKey- The non-nullkey to be wrapped. The format of the unwrapped key is unspecified.- Returns:
- The non-
nullprotected key. The format of the returned wrapped key is implementation defined.
-
unwrapKey
ByteSequence unwrapKey(ByteSequence wrappedKey)
Unwraps the providedwrappedkey.- Parameters:
wrappedKey- The non-nullkey to be unwrapped. The format of the wrapped key is implementation defined and must have been produced via a call towrapKey(ByteSequence).- Returns:
- The non-
nullunwrapped key which must contain exactly the same content passed towrapKey(ByteSequence).
-
-