|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.libpam.PAM
public class PAM
PAM authenticator.
Instances are thread unsafe and non reentrant. An instace cannot be reused to authenticate multiple users.
For an overview of PAM programming, refer to the following resources:
Constructor Summary | |
---|---|
PAM(java.lang.String serviceName)
Creates a new authenticator. |
Method Summary | |
---|---|
UnixUser |
authenticate(java.lang.String username,
java.lang.String password)
Authenticate the user with a password. |
void |
dispose()
Performs an early disposal of the object, instead of letting this GC-ed. |
protected void |
finalize()
|
java.util.Set<java.lang.String> |
getGroupsOfUser(java.lang.String username)
Deprecated. Pointless and ugly convenience method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PAM(java.lang.String serviceName) throws PAMException
serviceName
- PAM service name. This corresponds to the service name that shows up
in the PAM configuration,
PAMException
Method Detail |
---|
public UnixUser authenticate(java.lang.String username, java.lang.String password) throws PAMException
PAMException
- If the authentication fails.public java.util.Set<java.lang.String> getGroupsOfUser(java.lang.String username) throws PAMException
username
-
PAMException
public void dispose()
This method is called by finalize()
, too, so it's not required
to call this method explicitly, however.
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |