|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gnu.crypto.key.dh.GnuDHKeyPairGenerator
An implementation of a Diffie-Hellman keypair generator.
Reference:
| Field Summary | |
|---|---|
static java.lang.String |
DH_PARAMETERS
Property name of an optional DHGenParameterSpec instance to use
for this generator. |
static java.lang.String |
EXPONENT_SIZE
Property name of the size in bits (Integer) of the private exponent (x). |
static java.lang.String |
PRIME_SIZE
Property name of the size in bits (Integer) of the public prime (p). |
static java.lang.String |
SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. |
| Constructor Summary | |
|---|---|
GnuDHKeyPairGenerator()
|
|
| Method Summary | |
|---|---|
java.security.KeyPair |
generate()
Generates a new keypair based on the attributes used to configure the instance. |
java.lang.String |
name()
Returns the canonical name of this keypair generator. |
void |
setup(java.util.Map attributes)
[Re]-initialises this instance for use with a given set of attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SOURCE_OF_RANDOMNESS
SecureRandom instance to use. The
default is to use a classloader singleton from PRNG.
public static final java.lang.String DH_PARAMETERS
DHGenParameterSpec instance to use
for this generator.
public static final java.lang.String PRIME_SIZE
public static final java.lang.String EXPONENT_SIZE
| Constructor Detail |
public GnuDHKeyPairGenerator()
| Method Detail |
public java.lang.String name()
IKeyPairGenerator
name in interface IKeyPairGeneratorpublic void setup(java.util.Map attributes)
IKeyPairGenerator
setup in interface IKeyPairGeneratorattributes - a map of name/value pairs to use for setting up the
instance.public java.security.KeyPair generate()
IKeyPairGenerator
generate in interface IKeyPairGenerator
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||