For the latest news and information visit
The GNU Crypto project

gnu.crypto.jce.key
Class SecretKeyGeneratorImpl

java.lang.Object
  extended byjavax.crypto.KeyGeneratorSpi
      extended bygnu.crypto.jce.key.SecretKeyGeneratorImpl
Direct Known Subclasses:
AnubisKeyGeneratorImpl, BlowfishKeyGeneratorImpl, Cast5KeyGeneratorImpl, DESKeyGeneratorImpl, KhazadKeyGeneratorImpl, RijndaelKeyGeneratorImpl, SerpentKeyGeneratorImpl, SquareKeyGeneratorImpl, TripleDESKeyGeneratorImpl, TwofishKeyGeneratorImpl

public class SecretKeyGeneratorImpl
extends KeyGeneratorSpi


Field Summary
protected  String algorithm
           
protected  int currentKeySize
           
protected  int defaultKeySize
           
protected  boolean init
           
protected  List keySizes
           
protected  SecureRandom random
           
 
Constructor Summary
protected SecretKeyGeneratorImpl(String algorithm)
           
 
Method Summary
protected  SecretKey engineGenerateKey()
           
protected  void engineInit(AlgorithmParameterSpec params, SecureRandom random)
           
protected  void engineInit(int keySize, SecureRandom random)
           
protected  void engineInit(SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultKeySize

protected final int defaultKeySize

keySizes

protected final List keySizes

algorithm

protected final String algorithm

init

protected boolean init

currentKeySize

protected int currentKeySize

random

protected SecureRandom random
Constructor Detail

SecretKeyGeneratorImpl

protected SecretKeyGeneratorImpl(String algorithm)
Method Detail

engineGenerateKey

protected SecretKey engineGenerateKey()

engineInit

protected void engineInit(AlgorithmParameterSpec params,
                          SecureRandom random)
                   throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException

engineInit

protected void engineInit(int keySize,
                          SecureRandom random)

engineInit

protected void engineInit(SecureRandom random)

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.