|
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.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 | |
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. |
java.lang.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). |
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 |
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 java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.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 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 |