|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jpam.Pam
public class Pam
The PAM bridging class. Most of the work is done here.
To see debugging output for this class and native code, set the installed logging toolkit level for this class to DEBUG or equivalent. The debugging output for the native code will be sent toSTDOUT
.
This class may be called directly, or by using JAAS, via the JpamLoginModule
.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SERVICE_NAME
The default service name of "net-sf-pam". |
Constructor Summary | |
---|---|
Pam()
Creates a new Pam object configured to use the Pam.DEFAULT_SERVICE_NAME |
|
Pam(java.lang.String serviceName)
Creates a new PAM object configured with the specified service name. |
Method Summary | |
---|---|
PamReturnValue |
authenticate(java.lang.String username,
java.lang.String credentials)
Sames as authenticateSuccessful , except a PamReturnValue is returned
This method is threadsafe. |
boolean |
authenticateSuccessful(java.lang.String username,
java.lang.String credentials)
Authenticates a user. |
static java.lang.String |
getLibraryName()
|
java.lang.String |
getServiceName()
|
static void |
main(java.lang.String[] args)
A main method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SERVICE_NAME
Constructor Detail |
---|
public Pam()
Pam.DEFAULT_SERVICE_NAME
public Pam(java.lang.String serviceName) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
serviceName
-
java.lang.NullPointerException
java.lang.IllegalArgumentException
Method Detail |
---|
public boolean authenticateSuccessful(java.lang.String username, java.lang.String credentials)
username
- the username to be authenticatedcredentials
- the credentials to use in the authentication .e.g a password
PamReturnValue
is PamReturnValue.PAM_SUCCESS
public PamReturnValue authenticate(java.lang.String username, java.lang.String credentials) throws java.lang.NullPointerException
authenticateSuccessful
, except a PamReturnValue
is returned
This method is threadsafe.
username
- credentials
-
java.lang.NullPointerException
- if any of the parameters are nullPam.authenticateSuccessful(String, String)
public static void main(java.lang.String[] args)
public static java.lang.String getLibraryName()
public java.lang.String getServiceName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |