ch.odi.jaaspam
Class PamLoginModule
java.lang.Object
   ch.odi.jaaspam.PamLoginModule
ch.odi.jaaspam.PamLoginModule
- All Implemented Interfaces: 
- javax.security.auth.spi.LoginModule
- public class PamLoginModule 
- extends java.lang.Object- implements javax.security.auth.spi.LoginModule
JAAS login module that defers the actual authentication
 to PAM. This login module must set the PAM service name
 in the JAAS config file. The service name is passed as
 the value to the option named service.
 
Sample configuration:
 
 pam-sample {
  ch.odi.jaaspam.PamLoginModule required service=login;
 };
 
- Author:
- Ortwin Gl?ck
 
| Method Summary | 
|  boolean | abort()
 | 
|  boolean | commit()
 | 
|  void | initialize(javax.security.auth.Subject subject,
           javax.security.auth.callback.CallbackHandler callbackHandler,
           java.util.Map sharedState,
           java.util.Map options)Initializes PAM with the service name.
 | 
|  boolean | login()
 | 
|  boolean | logout()
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PamLoginModule
public PamLoginModule()
initialize
public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler callbackHandler,
                       java.util.Map sharedState,
                       java.util.Map options)
- Initializes PAM with the service name.
 
- 
- Specified by:
- initializein interface- javax.security.auth.spi.LoginModule
 
- 
- Parameters:
- subject- The subject to authenticate. Can be empty to make PAM ask for a username.
 
login
public boolean login()
              throws javax.security.auth.login.LoginException
- 
- Specified by:
- loginin interface- javax.security.auth.spi.LoginModule
 
- 
- Throws:
- javax.security.auth.login.LoginException
 
commit
public boolean commit()
               throws javax.security.auth.login.LoginException
- 
- Specified by:
- commitin interface- javax.security.auth.spi.LoginModule
 
- 
- Throws:
- javax.security.auth.login.LoginException
 
abort
public boolean abort()
              throws javax.security.auth.login.LoginException
- 
- Specified by:
- abortin interface- javax.security.auth.spi.LoginModule
 
- 
- Throws:
- javax.security.auth.login.LoginException
 
logout
public boolean logout()
               throws javax.security.auth.login.LoginException
- 
- Specified by:
- logoutin interface- javax.security.auth.spi.LoginModule
 
- 
- Throws:
- javax.security.auth.login.LoginException
 
Copyright © 2004-2008 Ortwin Glück. All Rights Reserved.