|
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.Objectgnu.crypto.key.dss.DSSKeyPairGenerator
A key-pair generator for asymetric keys to use in conjunction with the DSS (Digital Signature Standard).
References:
Field Summary | |
---|---|
static String |
DSS_PARAMETERS
Property name of an optional DSAParameterSpec instance to use for
this generator's p , q , and g values.
|
static DSAParameterSpec |
KEY_PARAMS_1024
|
static DSAParameterSpec |
KEY_PARAMS_512
|
static DSAParameterSpec |
KEY_PARAMS_768
|
static String |
MODULUS_LENGTH
Property name of the length (Integer) of the modulus (p) of a DSS key. |
static String |
SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. |
static String |
USE_DEFAULTS
Property name of the Boolean indicating wether or not to use defaults. |
Constructor Summary | |
---|---|
DSSKeyPairGenerator()
|
Method Summary | |
---|---|
KeyPair |
generate()
Generates a new keypair based on the attributes used to configure the instance. |
String |
name()
Returns the canonical name of this keypair generator. |
void |
setup(Map attributes)
Configures this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String MODULUS_LENGTH
public static final String USE_DEFAULTS
public static final String SOURCE_OF_RANDOMNESS
SecureRandom
instance to use. The
default is to use a classloader singleton from PRNG
.
public static final String DSS_PARAMETERS
DSAParameterSpec
instance to use for
this generator's p
, q
, and g
values.
The default is to generate these values or use pre-computed ones,
depending on the value of the USE_DEFAULTS
attribute.
public static final DSAParameterSpec KEY_PARAMS_512
public static final DSAParameterSpec KEY_PARAMS_768
public static final DSAParameterSpec KEY_PARAMS_1024
Constructor Detail |
public DSSKeyPairGenerator()
Method Detail |
public String name()
IKeyPairGenerator
name
in interface IKeyPairGenerator
public void setup(Map attributes)
Configures this instance.
setup
in interface IKeyPairGenerator
attributes
- the map of name/value pairs to use.
IllegalArgumentException
- if the designated MODULUS_LENGTH
value is not greater than 512, less than 1024 and not of the form
512 + 64j
.public 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 |