Package org.bouncycastle.jcajce.spec
Class UserKeyingMaterialSpec
java.lang.Object
org.bouncycastle.jcajce.spec.UserKeyingMaterialSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
-
Constructor Summary
ConstructorDescriptionUserKeyingMaterialSpec
(byte[] userKeyingMaterial) Base constructor.UserKeyingMaterialSpec
(byte[] userKeyingMaterial, byte[] salt) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getSalt()
Return a copy of the salt in this object.byte[]
Return a copy of the key material in this object.
-
Constructor Details
-
UserKeyingMaterialSpec
public UserKeyingMaterialSpec(byte[] userKeyingMaterial) Base constructor.- Parameters:
userKeyingMaterial
- the bytes to be mixed in to the key agreement's KDF.
-
UserKeyingMaterialSpec
public UserKeyingMaterialSpec(byte[] userKeyingMaterial, byte[] salt) Base constructor.- Parameters:
userKeyingMaterial
- the bytes to be mixed in to the key agreement's KDF.salt
- the salt to use with the underlying KDF.
-
-
Method Details
-
getUserKeyingMaterial
public byte[] getUserKeyingMaterial()Return a copy of the key material in this object.- Returns:
- the user keying material.
-
getSalt
public byte[] getSalt()Return a copy of the salt in this object.- Returns:
- the KDF salt.
-