|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.crypto.KeyGeneratorSpi
com.ibm.crypto.provider.DESedeKeyGenerator
public final class DESedeKeyGenerator
This class generates a Triple DES key.
Constructor Summary | |
---|---|
DESedeKeyGenerator()
Verify the JCE framework in the constructor. |
Method Summary | |
---|---|
protected SecretKey |
engineGenerateKey()
Generates the Triple DES key. |
protected void |
engineInit(AlgorithmParameterSpec params,
SecureRandom random)
Initializes this key generator with the specified parameter set and a user-provided source of randomness. |
protected void |
engineInit(int keysize,
SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness. |
protected void |
engineInit(SecureRandom random)
Initializes this key generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DESedeKeyGenerator()
SecurityException
- if fails to verify
the JCE framework.Method Detail |
---|
protected void engineInit(SecureRandom random)
engineInit
in class KeyGeneratorSpi
random
- the source of randomness for this generatorprotected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
engineInit
in class KeyGeneratorSpi
params
- the key generation parametersrandom
- the source of randomness for this key generator
InvalidAlgorithmParameterException
- if params
is
inappropriate for this key generatorprotected void engineInit(int keysize, SecureRandom random)
engineInit
in class KeyGeneratorSpi
keysize
- the keysize. This is an algorithm-specific
metric specified in number of bits. A keysize with 112 bits of entropy
corresponds to a Triple DES key with 2 intermediate keys, and a keysize
with 168 bits of entropy corresponds to a Triple DES key with 3
intermediate keys.random
- the source of randomness for this key generatorprotected SecretKey engineGenerateKey()
engineGenerateKey
in class KeyGeneratorSpi
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |