|
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.srp6.SRPKeyPairGenerator
public class SRPKeyPairGenerator
Reference:
Field Summary | |
---|---|
static String |
GENERATOR
Property name of the generator (g) of an SRP key. |
static String |
MODULUS_LENGTH
Property name of the length (Integer) of the modulus (N) of an SRP key. |
static String |
SHARED_MODULUS
Property name of the modulus (N) of an SRP 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. |
static String |
USER_VERIFIER
Property name of the user's verifier (v) for a Server SRP key. |
Constructor Summary | |
---|---|
SRPKeyPairGenerator()
|
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)
[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 String MODULUS_LENGTH
public static final String USE_DEFAULTS
public static final String SHARED_MODULUS
public static final String GENERATOR
public static final String USER_VERIFIER
public static final String SOURCE_OF_RANDOMNESS
SecureRandom
instance to use. The
default is to use a classloader singleton from PRNG
.
Constructor Detail |
---|
public SRPKeyPairGenerator()
Method Detail |
---|
public String name()
IKeyPairGenerator
name
in interface IKeyPairGenerator
public void setup(Map attributes)
IKeyPairGenerator
setup
in interface IKeyPairGenerator
attributes
- a map of name/value pairs to use for setting up the
instance.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 |