Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.slide.jaas.spi
Class SlideLoginModule  view SlideLoginModule download SlideLoginModule.java

java.lang.Object
  extended byorg.apache.slide.jaas.spi.SlideLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class SlideLoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule

JAAS LoginModule for authenticating against users in a Slide namespace.

The implementation assumes the ACLSecurityImpl is used.

Options include (to be specified in JAAS login configuration file):


Field Summary
protected  boolean m_authenticated
           
protected  javax.security.auth.callback.CallbackHandler m_callbackHandler
           
protected  boolean m_committed
           
protected  org.apache.slide.content.Content m_content
           
protected  java.security.acl.Group m_group
           
protected  java.security.Principal m_principal
           
protected  java.security.Principal[] m_roles
           
protected  java.lang.String m_rolesPath
           
protected  org.apache.slide.security.Security m_security
           
protected  java.util.Map m_sharedState
           
protected  javax.security.auth.Subject m_subject
           
protected  java.lang.String m_usersPath
           
 
Constructor Summary
SlideLoginModule()
           
 
Method Summary
 boolean abort()
          Phase 2 of authenticating a Subject when Phase 1 fails.
 boolean commit()
          Phase 2 of authenticating a Subject when Phase 1 was successful.
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
          Initialize this LoginModule with the specified configuration information.
 boolean login()
          Phase 1 of authenticating a Subject.
 boolean logout()
          Log out this user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_content

protected org.apache.slide.content.Content m_content

m_security

protected org.apache.slide.security.Security m_security

m_usersPath

protected java.lang.String m_usersPath

m_rolesPath

protected java.lang.String m_rolesPath

m_authenticated

protected boolean m_authenticated

m_subject

protected javax.security.auth.Subject m_subject

m_principal

protected java.security.Principal m_principal

m_roles

protected java.security.Principal[] m_roles

m_group

protected java.security.acl.Group m_group

m_committed

protected boolean m_committed

m_callbackHandler

protected javax.security.auth.callback.CallbackHandler m_callbackHandler

m_sharedState

protected java.util.Map m_sharedState
Constructor Detail

SlideLoginModule

public SlideLoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler callbackHandler,
                       java.util.Map sharedState,
                       java.util.Map options)
Initialize this LoginModule with the specified configuration information.

Specified by:
initialize in interface javax.security.auth.spi.LoginModule

login

public boolean login()
              throws javax.security.auth.login.LoginException
Phase 1 of authenticating a Subject.

Specified by:
login in interface javax.security.auth.spi.LoginModule

commit

public boolean commit()
               throws javax.security.auth.login.LoginException
Phase 2 of authenticating a Subject when Phase 1 was successful. This method is called if the LoginContext succeeded in the overall authentication chain.

Specified by:
commit in interface javax.security.auth.spi.LoginModule

abort

public boolean abort()
              throws javax.security.auth.login.LoginException
Phase 2 of authenticating a Subject when Phase 1 fails. This method is called if the LoginContext failed somewhere in the overall authentication chain.

Specified by:
abort in interface javax.security.auth.spi.LoginModule

logout

public boolean logout()
               throws javax.security.auth.login.LoginException
Log out this user.

Specified by:
logout in interface javax.security.auth.spi.LoginModule