info.magnolia.cms.security
Class SecuritySupportBase

java.lang.Object
  extended by info.magnolia.cms.security.SecuritySupportBase
All Implemented Interfaces:
SecuritySupport
Direct Known Subclasses:
RescueSecuritySupport, SecuritySupportImpl

public abstract class SecuritySupportBase
extends Object
implements SecuritySupport

Base implementation of SecuritySupport using JAAS for authentication.


Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.cms.security.SecuritySupport
SecuritySupport.Factory
 
Field Summary
static String DEFAULT_JAAS_LOGIN_CHAIN
           
 
Constructor Summary
SecuritySupportBase()
           
 
Method Summary
 LoginResult authenticate(CredentialsCallbackHandler callbackHandler, String customLoginModule)
          Performs an authentication using the CredentialsCallbackHandler to retrieve the user name and password.
protected static LoginContext createLoginContext(CredentialsCallbackHandler callbackHandler, String customLoginModule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.cms.security.SecuritySupport
getGroupManager, getRoleManager, getUserManager, getUserManager
 

Field Detail

DEFAULT_JAAS_LOGIN_CHAIN

public static final String DEFAULT_JAAS_LOGIN_CHAIN
See Also:
Constant Field Values
Constructor Detail

SecuritySupportBase

public SecuritySupportBase()
Method Detail

authenticate

public LoginResult authenticate(CredentialsCallbackHandler callbackHandler,
                                String customLoginModule)
Description copied from interface: SecuritySupport
Performs an authentication using the CredentialsCallbackHandler to retrieve the user name and password.

Specified by:
authenticate in interface SecuritySupport

createLoginContext

protected static LoginContext createLoginContext(CredentialsCallbackHandler callbackHandler,
                                                 String customLoginModule)
                                          throws LoginException
Throws:
LoginException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.