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
           
 
Fields inherited from class au.net.aba.crypto.provider.DESKeyGenerator
ident
 
Fields inherited from class javax.crypto.KeyGeneratorSpi
ident
 
Constructor Summary
DESedeKeyGenerator()
           
 
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 au.net.aba.crypto.provider.DESKeyGenerator
engineInit, engineInit, engineInit, setOddParity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

DESedeKeyGenerator

public DESedeKeyGenerator()
Method Detail

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