au.net.aba.crypto.provider
Class DESedeKeyGenerator
java.lang.Object
|
+--javax.crypto.KeyGeneratorSpi
|
+--au.net.aba.crypto.provider.DESKeyGenerator
|
+--au.net.aba.crypto.provider.DESedeKeyGenerator
- public class DESedeKeyGenerator
- extends DESKeyGenerator
This class is used for generating random DESede keys. This class
should not be instantiated directly, instead use the
javax.crypto.KeyGenerator interface.
There is no AlgorithmParameterSpec class defined for DESede so this
generator can only be initialised using the keysize,random
initialisation.
The returned key will be a non-weak key with odd parity.
Field Summary |
static java.lang.String |
ident
|
Method Summary |
protected SecretKey |
engineGenerateKey()
Generates a secret key, setting odd parity and checking that the
key is not a weak key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
DESedeKeyGenerator
public DESedeKeyGenerator()
engineGenerateKey
protected SecretKey engineGenerateKey()
- Generates a secret key, setting odd parity and checking that the
key is not a weak key.
- Returns:
- a DESede key object.
- Overrides:
- engineGenerateKey in class DESKeyGenerator