|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.pkcs.pkcs11.parameters.DHKeyDerivationParameters
This abstract class encapsulates parameters for the DH mechanisms Mechanism.ECDH1_DERIVE, Mechanism.ECDH1_COFACTOR_DERIVE, Mechanism.ECMQV_DERIVE, Mechanism.X9_42_DH_DERIVE , Mechanism.X9_42_DH_HYBRID_DERIVE and Mechanism.X9_42_MQV_DERIVE.
Inner Class Summary | |
static interface |
DHKeyDerivationParameters.KeyDerivationFunctionType
This interface defines the available key derivation function types as defined by PKCS#11: CKD_NULL, CKD_SHA1_KDF, CKD_SHA1_KDF_ASN1, CKD_SHA1_KDF_CONCATENATE. |
Field Summary | |
protected long |
keyDerivationFunction_
The key derivation function used on the shared secret value. |
protected byte[] |
publicData_
The other partie's public key value. |
Constructor Summary | |
protected |
DHKeyDerivationParameters(long keyDerivationFunction,
byte[] publicData)
Create a new DHKeyDerivationParameters object with the given attributes. |
Method Summary | |
java.lang.Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object. |
long |
getKeyDerivationFunction()
Get the key derivation function used on the shared secret value. |
byte[] |
getPublicData()
Get the other partie's public key value. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setKeyDerivationFunction(long keyDerivationFunction)
Set the ey derivation function used on the shared secret value. |
void |
setPublicData(byte[] publicData)
Set the other partie's public key value. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface iaik.pkcs.pkcs11.parameters.Parameters |
getPKCS11ParamsObject |
Field Detail |
protected long keyDerivationFunction_
protected byte[] publicData_
Constructor Detail |
protected DHKeyDerivationParameters(long keyDerivationFunction, byte[] publicData)
keyDerivationFunction
- The key derivation function used on the shared
secret value.
One of the values defined in
KeyDerivationFunctionType.publicData
- The other partie's public key value.Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public long getKeyDerivationFunction()
public byte[] getPublicData()
public void setKeyDerivationFunction(long keyDerivationFunction)
keyDerivationFunction
- The key derivation function used on the shared
secret value.
One of the values defined in
KeyDerivationFunctionType.public void setPublicData(byte[] publicData)
publicData
- The other partie's public key value.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class java.lang.Object
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |