|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.AlgorithmParameterGeneratorSpi de.fhg.igd.crypto.PBEParameterGenerator
public class PBEParameterGenerator
This class generates parameters for PBE according to PKCS#5. Encoding and Decoding conforms to ASN.1/DER as set forth in said standard. The PBEParameterSpec and subclasses thereof are supported for initialising the parameters.
PBEParameters
,
AlgorithmParameterSpec
Field Summary | |
---|---|
protected SecureRandom |
rnd_
The source of randomness used to generate IVs. |
protected int |
size_
The iteration count. |
Constructor Summary | |
---|---|
PBEParameterGenerator()
|
Method Summary | |
---|---|
protected AlgorithmParameters |
engineGenerateParameters()
Generates the parameters. |
protected void |
engineInit(AlgorithmParameterSpec paramSpec,
SecureRandom random)
Initializes this parameter generator with a set of algorithm-specific parameter generation values. |
protected void |
engineInit(int size,
SecureRandom random)
Initializes this parameter generator for a certain size and source of randomness. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SecureRandom rnd_
protected int size_
Constructor Detail |
---|
public PBEParameterGenerator()
Method Detail |
---|
protected void engineInit(int size, SecureRandom random)
engineInit
in class AlgorithmParameterGeneratorSpi
size
- The iteration count of the PBE. This must
be in the range of [1,0x7fffff].random
- The source of randomness.protected void engineInit(AlgorithmParameterSpec paramSpec, SecureRandom random) throws InvalidAlgorithmParameterException
engineInit
in class AlgorithmParameterGeneratorSpi
spec
- The set of algorithm-specific parameter
generation values.random
- the source of randomness.
InvalidAlgorithmParameterException
- if the
given parameter generation values are inappropriate
for this parameter generator.protected AlgorithmParameters engineGenerateParameters()
engineGenerateParameters
in class AlgorithmParameterGeneratorSpi
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |