May 1998
Intermediate to advanced
469 pages
14h 57m
English
Class javax.crypto.KeyGenerator
A key generator creates secret keys for use with symmetric ciphers.
Key generators are obtained by calling the
getInstance() method; they must then be
initialized with an init() method. The key
itself is then returned from the
generateSecret() method.
public class javax.crypto.KeyGenerator
extends java.lang.Object {
// Constructors
protected KeyGenerator(KeyGeneratorSpi, Provider, String);
// Class Methods
public static final KeyGenerator getInstance(String);
public static final KeyGenerator getInstance(String, String);
// Instance Methods
public final SecretKey generateKey();
public final String getAlgorithm();
public final Provider getProvider();
public final void init(int);
public final void init(int, SecureRandom);
public final void init(SecureRandom);
public final void init(AlgorithmParameterSpec);
public final void init(AlgorithmParameterSpec, SecureRandom);
}
AlgorithmParameterSpec, KeyGeneratorSpi, Provider, SecretKey, SecureRandom