|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.lyrisoft.chat.server.remote.auth.Passwd
Represents a unix-style passwd file with three colon-delimited fields:
| Constructor Summary | |
Passwd()
|
|
| Method Summary | |
static PasswdRecord |
getRecord(java.lang.String userId,
java.lang.String password)
Gets a PasswdRecord. |
static void |
main(java.lang.String[] args)
|
static void |
writeRecord(PasswdRecord r)
Write a PasswdRecord to the passwd file. |
static void |
writeRecord(java.lang.String userId,
int access,
java.lang.String passwd)
Write a new entry to the passwd file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Passwd()
| Method Detail |
public static final PasswdRecord getRecord(java.lang.String userId, java.lang.String password) throws java.io.IOException, AccessDenied
userId - the user Idpassword - the password in plaintextpublic static final void writeRecord(PasswdRecord r) throws java.io.IOException
r - the record to write
public static final void writeRecord(java.lang.String userId,
int access,
java.lang.String passwd)
throws java.io.IOException
userId - the user Idaccess - the access levelpasswd - the plaintext password that will get encryptedpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||