|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.pkcs.pkcs11.parameters.KEADeriveParameters
This class encapsulates parameters for the Mechanism.KEA_KEY_DERIVE.
Field Summary | |
protected boolean |
isSender_
Option for generating the key (called a TEK). |
protected byte[] |
publicData_
The other party's KEA public key value. |
protected byte[] |
randomA_
The Ra data. |
protected byte[] |
randomB_
The Rb data. |
Constructor Summary | |
KEADeriveParameters(boolean isSender,
byte[] randomA,
byte[] randomB,
byte[] publicData)
Create a new KEADeriveParameters object with the given attributes. |
Method Summary | |
Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object. |
Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_KEA_DERIVE_PARAMS class. |
byte[] |
getPublicData()
Get the other party's KEA public key value. |
byte[] |
getRandomA()
Get the random data Ra. |
byte[] |
getRandomB()
Get the random data Rb. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
boolean |
isSender()
Get the option for generating the key (called a TEK). |
void |
setPublicData(byte[] publicData)
Set the other party's KEA public key value. |
void |
setRandomA(byte[] randomA)
Set the random data Ra. |
void |
setRandomB(byte[] randomB)
Set the random data Rb. |
void |
setSender(boolean isSender)
Set the option for generating the key (called a TEK). |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean isSender_
protected byte[] randomA_
protected byte[] randomB_
protected byte[] publicData_
Constructor Detail |
public KEADeriveParameters(boolean isSender, byte[] randomA, byte[] randomB, byte[] publicData)
isSender
- Option for generating the key (called a TEK). The value is
TRUE if the sender (originator) generates the TEK, FALSE
if the recipient is regenerating the TEK.randomA
- The random data Ra.randomB
- The random data Rb.publicData
- The other party's KEA public key value.Method Detail |
public Object clone()
public Object getPKCS11ParamsObject()
getPKCS11ParamsObject
in interface Parameters
public byte[] getPublicData()
public byte[] getRandomA()
public byte[] getRandomB()
public boolean isSender()
public void setPublicData(byte[] publicData)
publicData
- The other party's KEA public key value.public void setRandomA(byte[] randomA)
randomA
- The random data Ra.public void setRandomB(byte[] randomB)
randomB
- The random data Rb.public void setSender(boolean isSender)
isSender
- True if the sender (originator) generates the TEK,
false if the recipient is regenerating the TEK.public String toString()
public boolean equals(Object otherObject)
otherObject
- The other object to compare to.
public int hashCode()
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |