public class PBEParameters extends java.lang.Object implements Parameters
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
PBEParameters(char[] initializationVector,
char[] password,
char[] salt,
long iterations)
Create a new PBEDeriveParameters 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.
|
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.
|
protected char[] initializationVector_
protected char[] password_
protected char[] salt_
protected long iterations_
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.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.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 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