|
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.PBEParameters
This class encapsulates parameters for the Mechanism.PBA_* and Mechanism.PBA_SHA1_WITH_SHA1_HMAC mechanisms.
Field Summary | |
protected char[] |
initializationVector_
The 8-byte initialization vector (IV), if an IV is required. |
protected long |
iterations_
The number of iterations required for the generation. |
protected char[] |
password_
The password to be used in the PBE key generation. |
protected char[] |
salt_
The salt to be used in the PBE key generation. |
Constructor Summary | |
PBEParameters(char[] initializationVector,
char[] password,
char[] salt,
long iterations)
Create a new PBEDeriveParameters 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. |
char[] |
getInitializationVector()
Get the 8-byte initialization vector (IV), if an IV is required. |
long |
getIterations()
Get the number of iterations required for the generation. |
char[] |
getPassword()
Get the password to be used in the PBE key generation. |
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_PBE_PARAMS class. |
char[] |
getSalt()
Get the salt to be used in the PBE key generation. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setInitializationVector(char[] initializationVector)
Set the 8-byte initialization vector (IV), if an IV is required. |
void |
setIterations(long iterations)
Set the number of iterations required for the generation. |
void |
setPassword(char[] password)
Set the password to be used in the PBE key generation. |
void |
setSalt(char[] salt)
Set the salt to be used in the PBE key generation. |
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 char[] initializationVector_
protected char[] password_
protected char[] salt_
protected long iterations_
Constructor Detail |
public PBEParameters(char[] initializationVector, char[] password, char[] salt, long iterations)
initializationVector
- The 8-byte initialization vector (IV), if an
IV is required.password
- The password to be used in the PBE key generation.salt
- The salt to be used in the PBE key generation.iterations
- The number of iterations required for the generation.Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject
in interface Parameters
public char[] getInitializationVector()
public char[] getPassword()
public char[] getSalt()
public long getIterations()
public void setInitializationVector(char[] initializationVector)
initializationVector
- The 8-byte initialization vector (IV), if an
IV is required.public void setPassword(char[] password)
password
- The password to be used in the PBE key generation.public void setSalt(char[] salt)
salt
- The salt to be used in the PBE key generation.public void setIterations(long iterations)
iterations
- The number of iterations required for the generation.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 |