com.caucho.server.security
Class AnonymousAuthenticator
java.lang.Object
com.caucho.server.security.AbstractAuthenticator
com.caucho.server.security.AnonymousAuthenticator
- All Implemented Interfaces:
- ServletAuthenticator, HandleAware, java.io.Serializable
public class AnonymousAuthenticator
- extends AbstractAuthenticator
The anonymous authenticator always succeeds
<authenticator url="anonymous:"/>
- See Also:
- Serialized Form
| Methods inherited from class com.caucho.server.security.AbstractAuthenticator |
addRoleMapping, digest, getDigestPassword, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPrincipalCacheSize, getUserPrincipal, getUserPrincipalImpl, 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 |
AnonymousAuthenticator
public AnonymousAuthenticator()
loginImpl
protected java.security.Principal loginImpl(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.lang.String user,
java.lang.String password)
throws ServletException
- Authenticate (login) the user.
- Overrides:
loginImpl 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
- The anonymous user is in the "user" 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