public class SkipJackPrivateWrapParameters extends java.lang.Object implements Parameters
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SkipJackPrivateWrapParameters(byte[] password,
byte[] publicData,
byte[] randomA,
byte[] primeP,
byte[] baseG,
byte[] subprimeQ)
Create a new SkipJackPrivateWrapParameters 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.
|
byte[] |
getBaseG()
Get the base g value.
|
byte[] |
getPassword()
Get the user-supplied password.
|
java.lang.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.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
protected byte[] password_
protected byte[] publicData_
protected byte[] randomA_
protected byte[] primeP_
protected byte[] baseG_
protected byte[] subprimeQ_
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.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.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 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