Package org.forgerock.secrets.keys
Interface KeyFormat<T>
-
- Type Parameters:
T
- the type of object returned by this formatter.
- All Known Implementing Classes:
JwkKeyFormat
,KeyFormatPem
,KeyFormatRaw
public interface KeyFormat<T>
A format that can be used for exporting key material.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
export(CryptoKey key, Key rawKey)
Exports the given crypto key and raw key material.
-
-
-
Method Detail
-
export
T export(CryptoKey key, Key rawKey) throws NoSuchSecretException
Exports the given crypto key and raw key material.- Parameters:
key
- the crypto key.rawKey
- the raw key material.- Returns:
- the exported key material in the given format.
- Throws:
NoSuchSecretException
- if the secret could not be exported.
-
-