public class KEADeriveParameters extends java.lang.Object implements Parameters
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
KEADeriveParameters(boolean isSender,
byte[] randomA,
byte[] randomB,
byte[] publicData)
Create a new KEADeriveParameters 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.
|
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.
|
protected boolean isSender_
protected byte[] randomA_
protected byte[] randomB_
protected byte[] publicData_
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.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Parameterspublic 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.Objectpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other object to compare to.public int hashCode()
hashCode in class java.lang.ObjectIAIK 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