java.lang.Object
org.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):
namespace: the namespace to load users from.
Defaults to the default namespace from the Slide domain configuration.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SlideLoginModule
public SlideLoginModule()
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