Top Fields Constructors Methods
org.bouncycastle.jcajce.spec

public Class UserKeyingMaterialSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Imports
java.security.spec.AlgorithmParameterSpec, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
public
UserKeyingMaterialSpec(byte[]
the bytes to be mixed in to the key agreement's KDF.
userKeyingMaterial
)

Base constructor.

public
UserKeyingMaterialSpec(byte[]
the bytes to be mixed in to the key agreement's KDF.
userKeyingMaterial
,
byte[]
the salt to use with the underlying KDF.
salt
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the KDF salt.
getSalt
()

Return a copy of the salt in this object.

public byte[]

Returns:

the user keying material.
getUserKeyingMaterial
()

Return a copy of the key material in this object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

saltback to summary
private final byte[] salt
userKeyingMaterialback to summary
private final byte[] userKeyingMaterial

Constructor Detail

UserKeyingMaterialSpecback to summary
public UserKeyingMaterialSpec(byte[] userKeyingMaterial)

Base constructor.

Parameters
userKeyingMaterial:byte[]

the bytes to be mixed in to the key agreement's KDF.

UserKeyingMaterialSpecback to summary
public UserKeyingMaterialSpec(byte[] userKeyingMaterial, byte[] salt)

Base constructor.

Parameters
userKeyingMaterial:byte[]

the bytes to be mixed in to the key agreement's KDF.

salt:byte[]

the salt to use with the underlying KDF.

Method Detail

getSaltback to summary
public byte[] getSalt()

Return a copy of the salt in this object.

Returns:byte[]

the KDF salt.

getUserKeyingMaterialback to summary
public byte[] getUserKeyingMaterial()

Return a copy of the key material in this object.

Returns:byte[]

the user keying material.