public class PBEParameters extends Object implements Parameters
| Modifier and Type | Field and Description |
|---|---|
protected long |
iterations
The number of iterations required for the generation.
|
protected char[] |
iv
The 8-byte initialization vector (IV), if an IV is required.
|
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[] iv,
char[] password,
char[] salt,
long iterations)
Create a new PBEDeriveParameters object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
sun.security.pkcs11.wrapper.CK_PBE_PARAMS |
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[] iv)
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.
|
protected char[] iv
protected char[] password
protected char[] salt
protected long iterations
public PBEParameters(char[] iv,
char[] password,
char[] salt,
long iterations)
iv - 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 sun.security.pkcs11.wrapper.CK_PBE_PARAMS getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Parameterspublic char[] getInitializationVector()
public char[] getPassword()
public char[] getSalt()
public long getIterations()
public void setInitializationVector(char[] iv)
iv - 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)
Copyright © 2022. All rights reserved.