|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ elgamal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.elgamal
Class ElGamalKeyPairGenerator

java.lang.Objectjava.security.KeyPairGeneratorSpi
cryptix.jce.provider.elgamal.ElGamalKeyPairGenerator
- public final class ElGamalKeyPairGenerator
- extends java.security.KeyPairGeneratorSpi
- Version:
- $Revision: 1.3 $
Field Summary | |
private boolean |
initialized
Initialized already? |
private int |
keysize
|
private static int |
KEYSIZE_DEFAULT
|
private static int |
KEYSIZE_MAX
|
private static int |
KEYSIZE_MIN
|
private java.security.SecureRandom |
random
|
private static java.math.BigInteger |
TWO
|
Constructor Summary | |
ElGamalKeyPairGenerator()
|
Method Summary | |
java.security.KeyPair |
generateKeyPair()
Generates a KeyPair according the rules for the algorithm. |
private void |
initialize()
|
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method. |
void |
initialize(int keysize,
java.security.SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness |
Methods inherited from class java.security.KeyPairGeneratorSpi |
clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
KEYSIZE_MIN
private static final int KEYSIZE_MIN
- See Also:
- Constant Field Values
KEYSIZE_MAX
private static final int KEYSIZE_MAX
- See Also:
- Constant Field Values
KEYSIZE_DEFAULT
private static final int KEYSIZE_DEFAULT
- See Also:
- Constant Field Values
TWO
private static final java.math.BigInteger TWO
random
private java.security.SecureRandom random
keysize
private int keysize
initialized
private boolean initialized
- Initialized already?
Constructor Detail |
ElGamalKeyPairGenerator
public ElGamalKeyPairGenerator()
Method Detail |
initialize
public void initialize(int keysize, java.security.SecureRandom random)
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Initialize the KeyPairGeneratorSpi with the specified
key size and source of randomness
initialize
public void initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Initialize the KeyPairGeneratorSpi with the specified
AlgorithmParameterSpec and source of randomness
This is a concrete method. It may be overridden by the provider
and if the AlgorithmParameterSpec class is invalid
throw InvalidAlgorithmParameterException. By default this
method just throws UnsupportedOperationException.
generateKeyPair
public java.security.KeyPair generateKeyPair()
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Generates a KeyPair according the rules for the algorithm.
Unless intialized, algorithm defaults will be used. It
creates a unique key pair each time.
initialize
private void initialize()
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ elgamal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |