|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.security.AbstractAuthenticator
com.caucho.security.AnonymousAuthenticator
public class AnonymousAuthenticator
The anonymous authenticator always succeeds
<authenticator url="anonymous:"/>
Field Summary |
---|
Fields inherited from class com.caucho.security.AbstractAuthenticator |
---|
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER |
Constructor Summary | |
---|---|
AnonymousAuthenticator()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnonymousAuthenticator()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |