|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.server.http.AbstractAuthenticator
This class is provided only for backwards compatibility. Use com.caucho.http.security.AbstractAuthenticator instead.
Field Summary | |
protected ServletContext |
application
Deprecated. |
protected java.lang.String |
cookieDomain
Deprecated. |
protected long |
cookieMaxAge
Deprecated. |
static java.lang.String |
LOGIN_NAME
Deprecated. |
protected RegistryNode |
params
Deprecated. |
protected LruCache |
principalCache
Deprecated. |
protected int |
principalCacheSize
Deprecated. |
protected boolean |
useCookie
Deprecated. |
Constructor Summary | |
AbstractAuthenticator()
Deprecated. |
Method Summary | |
java.security.Principal |
authenticate(HttpServletRequest request)
Deprecated. Grab the user from the request, assuming the user has already logged in. |
java.security.Principal |
authenticate(HttpServletRequest request,
java.lang.String user,
java.lang.String password)
Deprecated. Authenticate (login) the user. |
java.security.Principal |
authenticate(java.lang.String user,
java.lang.String password)
Deprecated. |
java.security.Principal |
authenticateCookie(HttpServletRequest request,
java.lang.String cookieValue)
Deprecated. |
java.security.Principal |
authenticateCookie(java.lang.String cookieValue)
Deprecated. |
java.lang.String |
getCookieDomain()
Deprecated. Returns the domain for a login cookie. |
long |
getCookieMaxAge()
Deprecated. Returns the max-age for a login cookie. |
int |
getPrincipalCacheSize()
Deprecated. Returns the size of the principal cache. |
ServletContext |
getServletContext()
Deprecated. Returns the servlet context owning this authenticator. |
boolean |
getUseCookie()
Deprecated. Returns true if Resin should generate the resinauth cookie by default. |
void |
init()
Deprecated. Initialize the authenticator with the application. |
void |
init(CauchoApplication app,
RegistryNode params)
Deprecated. Initialize the authenticator with the application. |
boolean |
isUserInRole(HttpServletRequest request,
java.security.Principal user,
java.lang.String role)
Deprecated. Returns true if the user plays the named role. |
boolean |
isUserInRole(java.security.Principal user,
java.lang.String role)
Deprecated. |
java.security.Principal |
login(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.lang.String user,
java.lang.String password,
boolean allowCookie)
Deprecated. Logs the user in with any appropriate password. |
java.security.Principal |
login(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.lang.String user,
java.lang.String password,
java.lang.String allowCookie)
Deprecated. Logs the user in with any appropriate password. |
void |
logout(HttpServletRequest request)
Deprecated. Logs the user out from the session. |
void |
setCookieDomain(java.lang.String cookieDomain)
Deprecated. Sets the domain for a login cookie. |
void |
setCookieMaxAge(long cookieMaxAge)
Deprecated. Sets the max age for a login cookie. |
void |
setPrincipalCacheSize(int size)
Deprecated. Sets the size of the principal cache. |
void |
setUseCookie(boolean useCookie)
Deprecated. Set true if Resin should generate the resinauth cookie by default. |
boolean |
updateCookie(HttpServletRequest request,
java.security.Principal user,
java.lang.String cookieValue)
Deprecated. |
boolean |
updateCookie(java.security.Principal user,
java.lang.String cookieValue)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOGIN_NAME
protected ServletContext application
protected RegistryNode params
protected int principalCacheSize
protected LruCache principalCache
protected boolean useCookie
protected java.lang.String cookieDomain
protected long cookieMaxAge
Constructor Detail |
public AbstractAuthenticator()
Method Detail |
public int getPrincipalCacheSize()
public void setPrincipalCacheSize(int size)
public boolean getUseCookie()
public void setUseCookie(boolean useCookie)
public java.lang.String getCookieDomain()
public void setCookieDomain(java.lang.String cookieDomain)
public long getCookieMaxAge()
public void setCookieMaxAge(long cookieMaxAge)
public void init(CauchoApplication app, RegistryNode params) throws ServletException
init
in interface Authenticator
application
- the owning application.public void init() throws ServletException
public ServletContext getServletContext()
public java.security.Principal authenticate(HttpServletRequest request) throws ServletException
authenticate
in interface Authenticator
request
- the servlet request.public java.security.Principal login(HttpServletRequest request, HttpServletResponse response, ServletContext application, java.lang.String user, java.lang.String password, java.lang.String allowCookie)
login
in interface Authenticator
com.caucho.server.http.Authenticator
request
- servlet requestresponse
- servlet response, in case any cookie need sending.application
- servlet applicationuser
- the user name.password
- the user's presented password.allowCookie
- true if the user allows cookies for
subsequent requests.public java.security.Principal login(HttpServletRequest request, HttpServletResponse response, ServletContext application, java.lang.String user, java.lang.String password, boolean allowCookie)
public boolean isUserInRole(HttpServletRequest request, java.security.Principal user, java.lang.String role)
isUserInRole
in interface Authenticator
request
- the servlet requestuser
- the user to testrole
- the role to testpublic void logout(HttpServletRequest request)
logout
in interface Authenticator
request
- the servlet requestpublic java.security.Principal authenticate(HttpServletRequest request, java.lang.String user, java.lang.String password)
public java.security.Principal authenticateCookie(HttpServletRequest request, java.lang.String cookieValue)
public boolean updateCookie(HttpServletRequest request, java.security.Principal user, java.lang.String cookieValue)
public java.security.Principal authenticate(java.lang.String user, java.lang.String password)
public java.security.Principal authenticateCookie(java.lang.String cookieValue)
public boolean updateCookie(java.security.Principal user, java.lang.String cookieValue)
public boolean isUserInRole(java.security.Principal user, java.lang.String role)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |