Package org.forgerock.util.crypto
Class HKDFKeyGenerator.HKDFMasterKey
java.lang.Object
javax.crypto.spec.SecretKeySpec
org.forgerock.util.crypto.HKDFKeyGenerator.HKDFMasterKey
- All Implemented Interfaces:
Serializable
,Key
,KeySpec
,SecretKey
,Destroyable
- Enclosing class:
- HKDFKeyGenerator
A secret key designed to be used as the master key for HKDF key generation. In addition to the secret key
material, this also has a non-secret random salt parameter.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getSalt()
Returns the non-secret salt for the master key.Methods inherited from class javax.crypto.spec.SecretKeySpec
equals, getAlgorithm, getEncoded, getFormat, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Method Details
-
getSalt
public byte[] getSalt()Returns the non-secret salt for the master key.- Returns:
- the non-secret salt for the master key
-