API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. KeyPairGenerator View Source
Author(s)
Benjamin Renaud
Since
Version
1.59, 04/21/06
Serial
Hierarchy
 Object
      KeyPairGeneratorSpi
          KeyPairGenerator
Implements
Subclasses
Description
publicabstract abstract class KeyPairGenerator
  The KeyPairGenerator class is used to generate pairs of public and private keys.
See also:    AlgorithmParameterSpec
Constructors
protected KeyPairGenerator (String algorithm)
  Creates a KeyPairGenerator object for the specified algorithm.
Methods
Hide/Show inherited methods
pack-private void disableFailover ()
public KeyPair generateKeyPair () [Specified in KeyPairGeneratorSpi]
  Generates a key pair.
publicfinal KeyPair genKeyPair ()
  Generates a key pair.
public String getAlgorithm ()
  Returns the standard name of the algorithm for this key pair generator.
publicstatic KeyPairGenerator getInstance (String algorithm) throws NoSuchAlgorithmException
  Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.
publicstatic KeyPairGenerator getInstance (String algorithm, Provider provider) throws NoSuchAlgorithmException
  Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.
publicstatic KeyPairGenerator getInstance (String algorithm, String provider) throws NoSuchAlgorithmException NoSuchProviderException
  Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.
publicfinal Provider getProvider ()
  Returns the provider of this key pair generator object.
public void initialize (AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
  Initializes the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.
public void initialize (AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException [Overrides KeyPairGeneratorSpi]
  Initializes the key pair generator with the given parameter set and source of randomness.
public void initialize (int keysize)
  Initializes the key pair generator for a certain keysize using a default parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.
public void initialize (int keysize, SecureRandom random) [Specified in KeyPairGeneratorSpi]
  Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).
Fields
Hide/Show inherited fields
pack-private Provider provider
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar