gnu.crypto.key.srp6

Class SRPKeyPairGenerator

Implemented Interfaces:
IKeyPairGenerator

public class SRPKeyPairGenerator
extends java.lang.Object
implements IKeyPairGenerator

Reference:
  1. SRP Protocol Design
    Thomas J. Wu.

Version:
$Revision: 1.1 $

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
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.

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.

Field Details

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


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.

Method Details

generate

public KeyPair generate()
Generates a new keypair based on the attributes used to configure the instance.
Specified by:
generate in interface IKeyPairGenerator

Returns:
a new keypair.


name

public String name()
Returns the canonical name of this keypair generator.

Specified by:
name in interface IKeyPairGenerator

Returns:
the canonical name of this instance.


setup

public void setup(Map attributes)
[Re]-initialises this instance for use with a given set of attributes.

Specified by:
setup in interface IKeyPairGenerator

Parameters:
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.