|
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.srp6.SRPKeyPairGenerator
Reference:
Field Summary | |
static java.lang.String |
GENERATOR
Property name of the generator (g) of an SRP key. |
static java.lang.String |
MODULUS_LENGTH
Property name of the length (Integer) of the modulus (N) of an SRP key. |
static java.lang.String |
SHARED_MODULUS
Property name of the modulus (N) of an SRP key. |
static java.lang.String |
SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. |
static java.lang.String |
USE_DEFAULTS
Property name of the Boolean indicating wether or not to use defaults. |
static java.lang.String |
USER_VERIFIER
Property name of the user's verifier (v) for a Server SRP key. |
Constructor Summary | |
SRPKeyPairGenerator()
|
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 MODULUS_LENGTH
public static final java.lang.String USE_DEFAULTS
public static final java.lang.String SHARED_MODULUS
public static final java.lang.String GENERATOR
public static final java.lang.String USER_VERIFIER
public static final java.lang.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 java.lang.String name()
IKeyPairGenerator
name
in interface IKeyPairGenerator
public void setup(java.util.Map attributes)
IKeyPairGenerator
setup
in interface IKeyPairGenerator
attributes
- 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 |