gnu.crypto.key.srp6
Class SRPKeyPairGenerator
java.lang.Object
gnu.crypto.key.srp6.SRPKeyPairGenerator
- IKeyPairGenerator
public class SRPKeyPairGenerator
extends java.lang.Object
Version:
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 | USER_VERIFIER - Property name of the user's verifier (v) for a Server SRP key.
|
static String | USE_DEFAULTS - Property name of the Boolean indicating wether or not to use defaults.
|
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.
|
GENERATOR
public static final String GENERATOR
Property name of the generator (g) of an SRP key.
MODULUS_LENGTH
public static final String MODULUS_LENGTH
Property name of the length (Integer) of the modulus (N) of an SRP key.
SHARED_MODULUS
public static final String SHARED_MODULUS
Property name of the modulus (N) of an SRP key.
SOURCE_OF_RANDOMNESS
public static final String SOURCE_OF_RANDOMNESS
Property name of an optional
SecureRandom
instance to use. The
default is to use a classloader singleton from
PRNG
.
USER_VERIFIER
public static final String USER_VERIFIER
Property name of the user's verifier (v) for a Server SRP key.
USE_DEFAULTS
public static final String USE_DEFAULTS
Property name of the Boolean indicating wether or not to use defaults.
generate
public KeyPair generate()
Generates a new keypair based on the attributes used to configure the
instance.
- generate in interface IKeyPairGenerator
- a new keypair.
name
public String name()
Returns the canonical name of this keypair generator.
- name in interface IKeyPairGenerator
- the canonical name of this instance.
setup
public void setup(Map attributes)
[Re]-initialises this instance for use with a given set of attributes.
- setup in interface IKeyPairGenerator
attributes
- a map of name/value pairs to use for setting up the
instance.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.