Known Direct Subclasses
KeyPairGenerator |
KeyPairGenerator is an engine class which is capable of generating a
private key and its related public key utilizing the algorithm it was
initialized with. |
|
Class Overview
KeyPairGeneratorSpi
is the Service Provider Interface (SPI)
definition for KeyPairGenerator
.
Summary
Public Methods |
abstract
KeyPair
|
generateKeyPair()
Computes and returns a new unique KeyPair each time this method
is called.
|
void
|
initialize(AlgorithmParameterSpec params, SecureRandom random)
Initializes this KeyPairGeneratorSpi with the given AlgorithmParameterSpec and the given SecureRandom .
|
abstract
void
|
initialize(int keysize, SecureRandom random)
Initializes this KeyPairGeneratorSpi with the given key size and
the given SecureRandom .
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Called before the object's memory is reclaimed by the VM.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
public
KeyPairGeneratorSpi
()
Constructs a new instance of KeyPairGeneratorSpi
.
Public Methods
public
abstract
KeyPair
generateKeyPair
()
Computes and returns a new unique KeyPair
each time this method
is called.
Returns
- a new unique
KeyPair
each time this method is called.
Initializes this KeyPairGeneratorSpi
with the given AlgorithmParameterSpec
and the given SecureRandom
.
Parameters
params
| the parameters to use. |
random
| the source of randomness. |
public
abstract
void
initialize
(int keysize, SecureRandom random)
Initializes this KeyPairGeneratorSpi
with the given key size and
the given SecureRandom
. The default parameter set will be used.
Parameters
keysize
| the key size (number of bits). |
random
| the source of randomness.
|