|
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.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 | |
Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(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. |
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. |
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 Object clone()
public Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Parameterspublic 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 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 | ||||||||||