org.metastatic.jessie
Interface SRPTrustManager
java.lang.Object
|
+--javax.net.ssl.TrustManager
|
+--org.metastatic.jessie.SRPTrustManager
All Implemented Interfaces:
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.
contains
public boolean contains(String user)
Tests if the configured password file contains the specified user name.
Parameters:
Returns:
- True if the password file has an entry for user
getKeyPair
public KeyPair getKeyPair(String user)
Create and return a session SRP key pair for the given user name.
Parameters:
Returns:
- The session key pair, or null if there is no
entry for user.
getPasswordFile
public PasswordFile getPasswordFile()
Returns a reference to the SRP PasswordFile used by this
TrustManager.
Returns:
- a reference to the SRP password file in use.
getSalt
public byte[] getSalt(String user)
Returns the salt value for the given user.
Parameters:
Returns:
- The salt for user's entry, or null.
getVerifier
public BigInteger getVerifier(String user)
Returns the password verifier for the given user.
Parameters:
Returns:
- user's password verifier, or null.