Build 1.0_r1(from source)

java.security
Class KeyPairGenerator

java.lang.Object
  extended by java.security.KeyPairGeneratorSpi
      extended by java.security.KeyPairGenerator

public abstract class KeyPairGenerator
extends KeyPairGeneratorSpi


Constructor Summary
protected KeyPairGenerator(String algorithm)
           
 
Method Summary
 KeyPair generateKeyPair()
           
 KeyPair genKeyPair()
           
 String getAlgorithm()
           
static KeyPairGenerator getInstance(String algorithm)
           
static KeyPairGenerator getInstance(String algorithm, Provider provider)
           
static KeyPairGenerator getInstance(String algorithm, String provider)
           
 Provider getProvider()
           
 void initialize(AlgorithmParameterSpec param)
           
 void initialize(AlgorithmParameterSpec param, SecureRandom random)
           
 void initialize(int keysize)
           
 void initialize(int keysize, SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPairGenerator

protected KeyPairGenerator(String algorithm)
Method Detail

getAlgorithm

public String getAlgorithm()

getInstance

public static KeyPairGenerator getInstance(String algorithm)
                                    throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

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

getInstance

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

getProvider

public final Provider getProvider()

initialize

public void initialize(int keysize)

initialize

public void initialize(AlgorithmParameterSpec param)
                throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException

genKeyPair

public final KeyPair genKeyPair()

generateKeyPair

public KeyPair generateKeyPair()
Specified by:
generateKeyPair in class KeyPairGeneratorSpi

initialize

public void initialize(int keysize,
                       SecureRandom random)
Specified by:
initialize in class KeyPairGeneratorSpi

initialize

public void initialize(AlgorithmParameterSpec param,
                       SecureRandom random)
                throws InvalidAlgorithmParameterException
Overrides:
initialize in class KeyPairGeneratorSpi
Throws:
InvalidAlgorithmParameterException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature