java.lang.Object
AbstractAuthenticator
org.acegisecurity.adapters.resin.ResinAcegiAuthenticator
- public class ResinAcegiAuthenticator
- extends AbstractAuthenticator
Adapter to enable Resin to authenticate via the Acegi Security System for
Spring.
Returns a org.acegisecurity.adapters.PrincipalAcegiUserToken to Resin's authentication system,
which is subsequently available via
HttpServletRequest.getUserPrincipal().
- Version:
- $Id: ResinAcegiAuthenticator.java,v 1.5 2005/11/25 00:26:29 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
authenticationManager
private org.acegisecurity.AuthenticationManager authenticationManager
appContextLocation
private java.lang.String appContextLocation
key
private java.lang.String key
ResinAcegiAuthenticator
public ResinAcegiAuthenticator()
setAppContextLocation
public void setAppContextLocation(java.lang.String appContextLocation)
getAppContextLocation
public java.lang.String getAppContextLocation()
setKey
public void setKey(java.lang.String key)
getKey
public java.lang.String getKey()
isUserInRole
public boolean isUserInRole(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext application,
java.security.Principal principal,
java.lang.String role)
init
public void init()
throws javax.servlet.ServletException
loginImpl
protected java.security.Principal loginImpl(java.lang.String username,
java.lang.String credentials)
loginImpl
protected java.security.Principal loginImpl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext application,
java.lang.String userName,
java.lang.String password)
throws javax.servlet.ServletException