org.metastatic.jessie
Interface SRPTrustManager
- TrustManager
public interface SRPTrustManager
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.
boolean | contains(String user) - Tests if the configured password file contains the specified user name.
|
KeyPair | getKeyPair(String user) - Create and return a session SRP key pair for the given user name.
|
PasswordFile | getPasswordFile() - Returns a reference to the SRP
PasswordFile used by this
TrustManager .
|
byte[] | getSalt(String user) - Returns the salt value for the given user.
|
BigInteger | getVerifier(String user) - Returns the password verifier for the given user.
|
contains
public boolean contains(String user)
Tests if the configured password file contains the specified user name.
- 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.
user
- The user name to generate the key pair for.
- 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
.
- a reference to the SRP password file in use.
getSalt
public byte[] getSalt(String user)
Returns the salt value for the given user.
- The salt for user's entry, or
null
.
getVerifier
public BigInteger getVerifier(String user)
Returns the password verifier for the given user.
- user's password verifier, or
null
.