|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectumich.cac.util.Passwd
A class that reads a UNIX style password file so we can obtain the UNIX uid for a given user for PBS accounting
| Field Summary | |
long |
NOT_FOUND
If UID not found, the default value is NOT_FOUND |
| Constructor Summary | |
Passwd()
Constructor. |
|
Passwd(java.lang.String passwdFile)
Constructor for unit testing |
|
| Method Summary | |
boolean |
isExist(java.lang.String filename)
Checks if passwd file exists |
long |
lookupUid(java.lang.String loginId)
Lookup the UID for a user given the loginId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public long NOT_FOUND
| Constructor Detail |
public Passwd(java.lang.String passwdFile)
throws java.io.FileNotFoundException,
java.io.IOException
passwdFile - an optional password file to use for lookups
java.io.IOException - if problem reading password file
java.io.FileNotFoundException - if doesn't exist
public Passwd()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.IOException - if problem reading password file
java.io.FileNotFoundException - if doesn't exist| Method Detail |
public boolean isExist(java.lang.String filename)
filename - passwd file to check for
public long lookupUid(java.lang.String loginId)
loginId - The login ID (entry 0 in the passwd file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||