Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.spec
Class UserKeyingMaterialSpec

java.lang.Object
  |
  +--org.bouncycastle.jcajce.spec.UserKeyingMaterialSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec

public class UserKeyingMaterialSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec


Constructor Summary
UserKeyingMaterialSpec(byte[] userKeyingMaterial)
          Base constructor.
UserKeyingMaterialSpec(byte[] userKeyingMaterial, byte[] salt)
          Base constructor.
 
Method Summary
 byte[] getSalt()
          Return a copy of the salt in this object.
 byte[] getUserKeyingMaterial()
          Return a copy of the key material in this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.

Bouncy Castle Cryptography Library 1.77.0