|
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.SkipJackPrivateWrapParameters
This class encapsulates parameters for the Mechanism.SKIPJACK_PRIVATE_WRAP.
Field Summary | |
protected byte[] |
baseG_
The base g value. |
protected byte[] |
password_
The user-supplied password. |
protected byte[] |
primeP_
The prime p value. |
protected byte[] |
publicData_
The other party's key exchange public key value. |
protected byte[] |
randomA_
The random Ra data. |
protected byte[] |
subprimeQ_
The subprime q value. |
Constructor Summary | |
SkipJackPrivateWrapParameters(byte[] password,
byte[] publicData,
byte[] randomA,
byte[] primeP,
byte[] baseG,
byte[] subprimeQ)
Create a new SkipJackPrivateWrapParameters 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. |
byte[] |
getBaseG()
Get the base g value. |
byte[] |
getPassword()
Get the user-supplied password. |
Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_SKIPJACK_PRIVATE_WRAP_PARAMS class. |
byte[] |
getPrimeP()
Get the prime p value. |
byte[] |
getPublicData()
Get the other party's key exchange public key value. |
byte[] |
getRandomA()
Get the random Ra data. |
byte[] |
getSubprimeQ()
Get the subprime q value. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setBaseG(byte[] baseG)
Set the base g value. |
void |
setPassword(byte[] password)
Set the user-supplied password. |
void |
setPrimeP(byte[] primeP)
Set the prime p value. |
void |
setPublicData(byte[] publicData)
Set the other party's key exchange public key value. |
void |
setRandomA(byte[] randomA)
Set the random Ra data. |
void |
setSubprimeQ(byte[] subprimeQ)
Set the subprime q value. |
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 byte[] password_
protected byte[] publicData_
protected byte[] randomA_
protected byte[] primeP_
protected byte[] baseG_
protected byte[] subprimeQ_
Constructor Detail |
public SkipJackPrivateWrapParameters(byte[] password, byte[] publicData, byte[] randomA, byte[] primeP, byte[] baseG, byte[] subprimeQ)
password
- The user-supplied password.publicData
- The other party's key exchange public key value.randomA
- The random Ra data.primeP
- The prime p value.baseG
- The base g value.subprimeQ
- The subprime q value.Method Detail |
public Object clone()
public Object getPKCS11ParamsObject()
getPKCS11ParamsObject
in interface Parameters
public byte[] getPassword()
public byte[] getPublicData()
public byte[] getRandomA()
public byte[] getPrimeP()
public byte[] getBaseG()
public byte[] getSubprimeQ()
public void setPassword(byte[] password)
password
- The user-supplied password.public void setPublicData(byte[] publicData)
publicData
- The other party's key exchange public key value.public void setRandomA(byte[] randomA)
randomA
- The random Ra data.public void setPrimeP(byte[] primeP)
primeP
- The prime p value.public void setBaseG(byte[] baseG)
baseG
- The base g value.public void setSubprimeQ(byte[] subprimeQ)
subprimeQ
- The subprime q value.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 |