public class PBEParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
PBEParameterSpec(byte[] salt,
int iterationCount)
Constructs a parameter set for password-based encryption as defined in
the PKCS #5 standard.
|
PBEParameterSpec(byte[] salt,
int iterationCount,
AlgorithmParameterSpec paramSpec)
Constructs a parameter set for password-based encryption as defined in
the PKCS #5 standard.
|
Modifier and Type | Method and Description |
---|---|
int |
getIterationCount()
Returns the iteration count.
|
AlgorithmParameterSpec |
getParameterSpec()
Returns the cipher algorithm parameter specification.
|
byte[] |
getSalt()
Returns the salt.
|
public PBEParameterSpec(byte[] salt, int iterationCount)
NullPointerException
- if salt
is null.salt
- the salt. The contents of salt
are copied
to protect against subsequent modification.iterationCount
- the iteration count.public PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec)
NullPointerException
- if salt
is null.salt
- the salt. The contents of salt
are copied
to protect against subsequent modification.iterationCount
- the iteration count.paramSpec
- the cipher algorithm parameter specification, which
may be null.public byte[] getSalt()
public int getIterationCount()
public AlgorithmParameterSpec getParameterSpec()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2022 aicas GmbH. All Rights Reserved.