|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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 String |
DEFAULT_SERVICE_NAME
The default service name of "net-sf-pam". |
Constructor Summary | |
---|---|
Pam()
Creates a new Pam object configured to use the DEFAULT_SERVICE_NAME |
|
Pam(String serviceName)
Creates a new PAM object configured with the specified service name. |
Method Summary | |
---|---|
PamReturnValue |
authenticate(String username,
String credentials)
Sames as authenticateSuccessful , except a PamReturnValue is returned
This method is threadsafe. |
boolean |
authenticateSuccessful(String username,
String credentials)
Authenticates a user. |
static String |
getLibraryName()
|
String |
getServiceName()
|
static void |
main(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 String DEFAULT_SERVICE_NAME
Constructor Detail |
---|
public Pam()
DEFAULT_SERVICE_NAME
public Pam(String serviceName) throws NullPointerException, IllegalArgumentException
serviceName
-
NullPointerException
IllegalArgumentException
Method Detail |
---|
public boolean authenticateSuccessful(String username, 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(String username, String credentials) throws NullPointerException
authenticateSuccessful
, except a PamReturnValue
is returned
This method is threadsafe.
username
- credentials
-
NullPointerException
- if any of the parameters are nullauthenticateSuccessful(String, String)
public static void main(String[] args)
public static String getLibraryName()
public String getServiceName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |