public abstract class DHKeyDerivationParameters extends java.lang.Object implements Parameters
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected long |
keyDerivationFunction_
The key derivation function used on the shared secret value.
|
protected byte[] |
publicData_
The other partie's public key value.
|
Modifier | Constructor and Description |
---|---|
protected |
DHKeyDerivationParameters(long keyDerivationFunction,
byte[] publicData)
Create a new DHKeyDerivationParameters object with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
getPKCS11ParamsObject
protected long keyDerivationFunction_
protected byte[] publicData_
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.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 JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9