info.magnolia.cms.security
Class RescueSecuritySupport

java.lang.Object
  extended by info.magnolia.cms.security.SecuritySupportBase
      extended by info.magnolia.cms.security.RescueSecuritySupport
All Implemented Interfaces:
SecuritySupport

public class RescueSecuritySupport
extends SecuritySupportBase

To be used as a replacement of /server/security or SecuritySupportImpl in mgnl-beans.properties in case the configuration is messed up. For instance, edit WEB-INF/config/default/magnolia.properties and add

info.magnolia.cms.security.SecuritySupport=info.magnolia.cms.security.RescueSecuritySupport

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Nested Class Summary
protected  class RescueSecuritySupport.RescueUser
          TODO extract as top level class?
protected  class RescueSecuritySupport.RescueUserManager
          TODO: extract as top level class?
 
Nested classes/interfaces inherited from interface info.magnolia.cms.security.SecuritySupport
SecuritySupport.Factory
 
Field Summary
 
Fields inherited from class info.magnolia.cms.security.SecuritySupportBase
DEFAULT_JAAS_LOGIN_CHAIN
 
Constructor Summary
RescueSecuritySupport()
           
 
Method Summary
 LoginResult authenticate(CredentialsCallbackHandler callbackHandler, String customLoginModule)
          Performs an authentication using the CredentialsCallbackHandler to retriev the user name and password.
 GroupManager getGroupManager()
           
 RoleManager getRoleManager()
           
 UserManager getUserManager()
          Returns a generic UserManager, either for a default realm, or an implementation which delegates to other UserManager instances.
 UserManager getUserManager(String realmName)
          Returns a UserManager for the given realm.
 
Methods inherited from class info.magnolia.cms.security.SecuritySupportBase
createLoginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RescueSecuritySupport

public RescueSecuritySupport()
Method Detail

getUserManager

public UserManager getUserManager()
Description copied from interface: SecuritySupport
Returns a generic UserManager, either for a default realm, or an implementation which delegates to other UserManager instances.


getUserManager

public UserManager getUserManager(String realmName)
Description copied from interface: SecuritySupport
Returns a UserManager for the given realm.


getGroupManager

public GroupManager getGroupManager()

getRoleManager

public RoleManager getRoleManager()

authenticate

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

Specified by:
authenticate in interface SecuritySupport
Overrides:
authenticate in class SecuritySupportBase


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.