|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgnu.crypto.sasl.srp.PasswordFile
The implementation of SRP-6 password files.
For SRP, there are three (3) files:
This implementation assumes the following message digest algorithm codes:
Reference:
| Constructor Summary | |
PasswordFile()
|
|
PasswordFile(java.io.File pwFile)
|
|
PasswordFile(java.lang.String pwName)
|
|
PasswordFile(java.lang.String pwName,
java.lang.String confName)
|
|
PasswordFile(java.lang.String pwName,
java.lang.String pw2Name,
java.lang.String confName)
|
|
| Method Summary | |
void |
add(java.lang.String user,
java.lang.String passwd,
byte[] salt,
java.lang.String index)
|
void |
changePasswd(java.lang.String user,
java.lang.String passwd)
|
boolean |
contains(java.lang.String user)
|
boolean |
containsConfig(java.lang.String index)
|
java.lang.String[] |
lookup(java.lang.String user,
java.lang.String mdName)
Returns the triplet: verifier, salt and configuration file index, of a designated user, and a designated message digest algorithm name, as an array of strings. |
java.lang.String[] |
lookupConfig(java.lang.String index)
|
void |
savePasswd()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PasswordFile()
throws java.io.IOException
public PasswordFile(java.io.File pwFile)
throws java.io.IOException
public PasswordFile(java.lang.String pwName)
throws java.io.IOException
public PasswordFile(java.lang.String pwName,
java.lang.String confName)
throws java.io.IOException
public PasswordFile(java.lang.String pwName,
java.lang.String pw2Name,
java.lang.String confName)
throws java.io.IOException
| Method Detail |
public boolean containsConfig(java.lang.String index)
throws java.io.IOException
java.io.IOException
public java.lang.String[] lookupConfig(java.lang.String index)
throws java.io.IOException
java.io.IOException
public boolean contains(java.lang.String user)
throws java.io.IOException
java.io.IOException
public void add(java.lang.String user,
java.lang.String passwd,
byte[] salt,
java.lang.String index)
throws java.io.IOException
java.io.IOException
public void changePasswd(java.lang.String user,
java.lang.String passwd)
throws java.io.IOException
java.io.IOException
public void savePasswd()
throws java.io.IOException
java.io.IOException
public java.lang.String[] lookup(java.lang.String user,
java.lang.String mdName)
throws java.io.IOException
Returns the triplet: verifier, salt and configuration file index, of a designated user, and a designated message digest algorithm name, as an array of strings.
user - the username.mdName - the canonical name of the SRP's message digest algorithm.
java.io.IOException
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||