public class PKCS5PBKD2Parameters extends Object implements Parameters
| Modifier and Type | Class and Description |
|---|---|
static interface |
PKCS5PBKD2Parameters.PseudoRandomFunctionType
This interface defines the available pseudo-random function types as
defined by PKCS#11: CKP_PKCS5_PBKD2_HMAC_SHA1.
|
static interface |
PKCS5PBKD2Parameters.SaltSourceType
This interface defines the available sources of the salt value as
defined by PKCS#11: CKZ_SALT_SPECIFIED.
|
| Modifier and Type | Field and Description |
|---|---|
protected long |
iterations
The number of iterations to perform when generating each block of random
data.
|
protected long |
pseudoRandomFunction
The pseudo-random function (PRF) to used to generate the key.
|
protected byte[] |
pseudoRandomFunctionData
The data used as the input for PRF in addition to the salt value.
|
protected long |
saltSource
The source of the salt value.
|
protected byte[] |
saltSourceData
The data used as the input for the salt source.
|
| Constructor and Description |
|---|
PKCS5PBKD2Parameters(long saltSource,
byte[] saltSourceData,
long iterations,
long pseudoRandomFunction,
byte[] pseudoRandomFunctionData)
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.
|
long |
getIterations()
Get the number of iterations to perform when generating each block of
random data.
|
sun.security.pkcs11.wrapper.CK_PKCS5_PBKD2_PARAMS |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_PKCS5_PBKD2_PARAMS
class.
|
long |
getPseudoRandomFunction()
Get the pseudo-random function (PRF) to used to generate the key.
|
byte[] |
getPseudoRandomFunctionData()
Get the data used as the input for PRF in addition to the salt value.
|
long |
getSaltSource()
Get the source of the salt value.
|
byte[] |
getSaltSourceData()
Get the data used as the input for the salt source.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
void |
setIterations(long iterations)
Set the number of iterations to perform when generating each block of
random data.
|
void |
setPseudoRandomFunction(long pseudoRandomFunction)
Set the pseudo-random function (PRF) to used to generate the key.
|
void |
setPseudoRandomFunctionData(byte[] pseudoRandomFunctionData)
Set the data used as the input for PRF in addition to the salt value.
|
void |
setSaltSource(long saltSource)
Set the source of the salt value.
|
void |
setSaltSourceData(byte[] saltSourceData)
Set the data used as the input for the salt source.
|
String |
toString()
Returns the string representation of this object.
|
protected long saltSource
protected byte[] saltSourceData
protected long iterations
protected long pseudoRandomFunction
protected byte[] pseudoRandomFunctionData
public PKCS5PBKD2Parameters(long saltSource,
byte[] saltSourceData,
long iterations,
long pseudoRandomFunction,
byte[] pseudoRandomFunctionData)
saltSource - The source of the salt value. One of the constants defined in
the SaltSourceType interface.saltSourceData - The data used as the input for the salt source.iterations - The number of iterations to perform when generating each block
of random data.pseudoRandomFunction - The pseudo-random function (PRF) to used to generate the key.
One of the constants defined in the PseudoRandomFunctionType
interface.pseudoRandomFunctionData - The data used as the input for PRF in addition to the salt
value.public sun.security.pkcs11.wrapper.CK_PKCS5_PBKD2_PARAMS getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Parameterspublic long getSaltSource()
public byte[] getSaltSourceData()
public long getIterations()
public long getPseudoRandomFunction()
public byte[] getPseudoRandomFunctionData()
public void setSaltSource(long saltSource)
saltSource - The source of the salt value. One of the constants defined in
the SaltSourceType interfacepublic void setSaltSourceData(byte[] saltSourceData)
saltSourceData - The data used as the input for the salt source.public void setIterations(long iterations)
iterations - The number of iterations to perform when generating each block
of random data.public void setPseudoRandomFunction(long pseudoRandomFunction)
pseudoRandomFunction - The pseudo-random function (PRF) to used to generate the key.
One of the constants defined in the PseudoRandomFunctionType
interface.public void setPseudoRandomFunctionData(byte[] pseudoRandomFunctionData)
pseudoRandomFunctionData - The data used as the input for PRF in addition to the salt
value.public String toString()
public boolean equals(Object otherObject)
Copyright © 2020. All rights reserved.