gnu.crypto.key.srp6

Class SRPKeyPairGenerator

public class SRPKeyPairGenerator extends Object implements IKeyPairGenerator

Reference:

  1. SRP Protocol Design
    Thomas J. Wu.

Version: $Revision: 1.2 $

Field Summary
static StringGENERATOR
Property name of the generator (g) of an SRP key.
static StringMODULUS_LENGTH
Property name of the length (Integer) of the modulus (N) of an SRP key.
static StringSHARED_MODULUS
Property name of the modulus (N) of an SRP key.
static StringSOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use.
static StringUSER_VERIFIER
Property name of the user's verifier (v) for a Server SRP key.
static StringUSE_DEFAULTS
Property name of the Boolean indicating wether or not to use defaults.
Method Summary
KeyPairgenerate()
Stringname()
voidsetup(Map attributes)

Field Detail

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.

Method Detail

generate

public KeyPair generate()

name

public String name()

setup

public void setup(Map attributes)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.