Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
org.metastatic.jessie

Interface SRPTrustManager

java.lang.Object
|
+--javax.net.ssl.TrustManager
   |
   +--org.metastatic.jessie.SRPTrustManager

All Implemented Interfaces:

TrustManager


public interface SRPTrustManager

implements TrustManager

A trust manager for secure remote password (SRP) key exchange cipher suites. This is a read-only interface to the gnu.crypto.sasl.srp.PasswordFile class, with convenience methods to generate session key pairs.

Method Summary

booleancontains(String user)

Tests if the configured password file contains the specified user name.
KeyPairgetKeyPair(String user)

Create and return a session SRP key pair for the given user name.
PasswordFilegetPasswordFile()

Returns a reference to the SRP PasswordFile used by this TrustManager.
byte[]getSalt(String user)

Returns the salt value for the given user.
BigIntegergetVerifier(String user)

Returns the password verifier for the given user.

Method Details

contains

public boolean contains(String user)

Tests if the configured password file contains the specified user name.

Parameters:

Returns:


getKeyPair

public KeyPair getKeyPair(String user)

Create and return a session SRP key pair for the given user name.

Parameters:

Returns:


getPasswordFile

public PasswordFile getPasswordFile()

Returns a reference to the SRP PasswordFile used by this TrustManager.

Returns:


getSalt

public byte[] getSalt(String user)

Returns the salt value for the given user.

Parameters:

Returns:


getVerifier

public BigInteger getVerifier(String user)

Returns the password verifier for the given user.

Parameters:

Returns: