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

Quick Search    Search Deep

net.sf.acegisecurity.adapters.resin
Class ResinAcegiAuthenticator  view ResinAcegiAuthenticator download ResinAcegiAuthenticator.java

java.lang.Object
  extended byAbstractAuthenticator
      extended bynet.sf.acegisecurity.adapters.resin.ResinAcegiAuthenticator

public class ResinAcegiAuthenticator
extends AbstractAuthenticator

Adapter to enable Resin to authenticate via the Acegi Security System for Spring.

Returns a net.sf.acegisecurity.adapters.PrincipalAcegiUserToken to Resin's authentication system, which is subsequently available via HttpServletRequest.getUserPrincipal().

Version:
$Id: ResinAcegiAuthenticator.java,v 1.3 2004/03/30 04:45:39 benalex Exp $

Field Summary
private  java.lang.String appContextLocation
           
private  net.sf.acegisecurity.AuthenticationManager authenticationManager
           
private  java.lang.String key
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
ResinAcegiAuthenticator()
           
 
Method Summary
 java.lang.String getAppContextLocation()
           
 java.lang.String getKey()
           
 void init()
           
 boolean isUserInRole(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext application, java.security.Principal principal, java.lang.String role)
           
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)
           
protected  java.security.Principal loginImpl(java.lang.String username, java.lang.String credentials)
           
 void setAppContextLocation(java.lang.String appContextLocation)
           
 void setKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

authenticationManager

private net.sf.acegisecurity.AuthenticationManager authenticationManager

appContextLocation

private java.lang.String appContextLocation

key

private java.lang.String key
Constructor Detail

ResinAcegiAuthenticator

public ResinAcegiAuthenticator()
Method Detail

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