Build 1.0_r1(from source)

javax.crypto
Class KeyGenerator

java.lang.Object
  extended by javax.crypto.KeyGenerator

public class KeyGenerator
extends Object


Constructor Summary
protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, String algorithm)
           
 
Method Summary
 SecretKey generateKey()
           
 String getAlgorithm()
           
static KeyGenerator getInstance(String algorithm)
           
static KeyGenerator getInstance(String algorithm, Provider provider)
           
static KeyGenerator getInstance(String algorithm, String provider)
           
 Provider getProvider()
           
 void init(AlgorithmParameterSpec params)
           
 void init(AlgorithmParameterSpec params, SecureRandom random)
           
 void init(int keysize)
           
 void init(int keysize, SecureRandom random)
           
 void init(SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGenerator

protected KeyGenerator(KeyGeneratorSpi keyGenSpi,
                       Provider provider,
                       String algorithm)
Method Detail

getAlgorithm

public final String getAlgorithm()

getProvider

public final Provider getProvider()

getInstance

public static final KeyGenerator getInstance(String algorithm)
                                      throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

public static final KeyGenerator getInstance(String algorithm,
                                             String provider)
                                      throws NoSuchAlgorithmException,
                                             NoSuchProviderException
Throws:
NoSuchAlgorithmException
NoSuchProviderException

getInstance

public static final KeyGenerator getInstance(String algorithm,
                                             Provider provider)
                                      throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

generateKey

public final SecretKey generateKey()

init

public final void init(AlgorithmParameterSpec params)
                throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException

init

public final void init(AlgorithmParameterSpec params,
                       SecureRandom random)
                throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException

init

public final void init(int keysize)

init

public final void init(int keysize,
                       SecureRandom random)

init

public final void init(SecureRandom random)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature