public class AnonymousAuthenticator extends AbstractAuthenticator
<authenticator url="anonymous:"/>
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER
Constructor and Description |
---|
AnonymousAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected java.security.Principal |
authenticate(java.security.Principal user,
PasswordCredentials cred,
java.lang.Object details)
Authenticate (login) the user.
|
boolean |
isUserInRole(java.security.Principal user,
java.lang.String role)
The anonymous user is in the "user" role
|
addRoleMapping, authenticate, authenticate, authenticate, authenticate, digest, getAlgorithm, getDigest, getDigestSecret, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPasswordUser, getPasswordUser, getSingleSignon, init, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setSerializationHandle, stringToDigest, toString, writeReplace
protected java.security.Principal authenticate(java.security.Principal user, PasswordCredentials cred, java.lang.Object details)
authenticate
in class AbstractAuthenticator
public boolean isUserInRole(java.security.Principal user, java.lang.String role)
isUserInRole
in interface Authenticator
isUserInRole
in class AbstractAuthenticator
request
- the servlet requestuser
- the user to testrole
- the role to test