com.caucho.server.security
Class NullAuthenticator
java.lang.Object
com.caucho.server.security.AbstractAuthenticator
com.caucho.server.security.NullAuthenticator
- All Implemented Interfaces:
- ServletAuthenticator, HandleAware, java.io.Serializable
public class NullAuthenticator
- extends AbstractAuthenticator
The null authenticator creates a dummy user.
- See Also:
- Serialized Form
|
Method Summary |
java.security.Principal |
getUserPrincipalImpl(HttpServletRequest request,
ServletContext application)
Gets the user from a persistent cookie, uaing authenticateCookie
to actually look the cookie up. |
boolean |
isUserInRole(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.security.Principal user,
java.lang.String role)
Returns true if the user plays the named role. |
java.security.Principal |
loginImpl(HttpServletRequest request,
HttpServletResponse response,
ServletContext app,
java.lang.String user,
java.lang.String password)
Authenticate (login) the user. |
| Methods inherited from class com.caucho.server.security.AbstractAuthenticator |
addRoleMapping, digest, getDigestPassword, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPrincipalCacheSize, getUserPrincipal, init, login, loginDigest, loginDigestImpl, logout, logout, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setPrincipalCacheSize, setSerializationHandle, stringToDigest, toString, writeReplace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullAuthenticator
public NullAuthenticator()
loginImpl
public java.security.Principal loginImpl(HttpServletRequest request,
HttpServletResponse response,
ServletContext app,
java.lang.String user,
java.lang.String password)
throws ServletException
- Description copied from class:
AbstractAuthenticator
- Authenticate (login) the user.
- Overrides:
loginImpl in class AbstractAuthenticator
- Throws:
ServletException
getUserPrincipalImpl
public java.security.Principal getUserPrincipalImpl(HttpServletRequest request,
ServletContext application)
throws ServletException
- Description copied from class:
AbstractAuthenticator
- Gets the user from a persistent cookie, uaing authenticateCookie
to actually look the cookie up.
- Overrides:
getUserPrincipalImpl in class AbstractAuthenticator
- Throws:
ServletException
isUserInRole
public boolean isUserInRole(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.security.Principal user,
java.lang.String role)
throws ServletException
- Returns true if the user plays the named role.
- Specified by:
isUserInRole in interface ServletAuthenticator- Overrides:
isUserInRole in class AbstractAuthenticator
- Parameters:
request - the servlet requestuser - the user to testrole - the role to testapplication - the owning application
- Throws:
ServletException