iaik.security.pbe
Class PBEGenParameterSpec
java.lang.Object
|
+--iaik.security.pbe.PBEGenParameterSpec
- public class PBEGenParameterSpec
- extends java.lang.Object
- implements AlgorithmParameterSpec
This class specifies salt length and iteration count to be used for generating
algorithm parameters for password based encryption.
An instance of this class may be necessary for initializing a PBEParameterGenerator to create PBEParameters.
Salt and iteration count are used for creating key material from a password according to PKCS#5/PKCS#12.
- See Also:
PBEParameterGenerator,
PBEParameters
|
Constructor Summary |
PBEGenParameterSpec(int saltLength,
int iterationCount)
Specifies the PBE key generation parameters, using a salt length and an
iteration count. |
|
Method Summary |
int |
getIterationCount()
Returns the number of iterations when generating the key and the
initialization vector (IV). |
int |
getSaltLength()
Returns the length of the salt in bytes. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PBEGenParameterSpec
public PBEGenParameterSpec(int saltLength,
int iterationCount)
- Specifies the PBE key generation parameters, using a salt length and an
iteration count.
- Parameters:
saltLength - the length of the salt in bytesiterationCount - the number of iterations
getSaltLength
public int getSaltLength()
- Returns the length of the salt in bytes.
- Returns:
- the length of the salt in bytes
getIterationCount
public int getIterationCount()
- Returns the number of iterations when generating the key and the
initialization vector (IV).
- Returns:
- the iteration count