gnu.crypto.jce.key

Class SecretKeyGeneratorImpl

Known Direct 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

SecretKeyGeneratorImpl(String algorithm)

Method Summary

protected SecretKey
engineGenerateKey()
protected void
engineInit(AlgorithmParameterSpec params, SecureRandom random)
protected void
engineInit(SecureRandom random)
protected void
engineInit(int keySize, SecureRandom random)

Field Details

algorithm

protected final String algorithm

currentKeySize

protected int currentKeySize

defaultKeySize

protected final int defaultKeySize

init

protected boolean init

keySizes

protected final List keySizes

random

protected SecureRandom random

Constructor Details

SecretKeyGeneratorImpl

protected SecretKeyGeneratorImpl(String algorithm)

Method Details

engineGenerateKey

protected SecretKey engineGenerateKey()

engineInit

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

engineInit

protected void engineInit(SecureRandom random)

engineInit

protected void engineInit(int keySize,
                          SecureRandom random)

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