|
||||||||||
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.NullAuthenticator
public class NullAuthenticator
The null authenticator creates a dummy user.
Field Summary |
---|
Fields inherited from class com.caucho.security.AbstractAuthenticator |
---|
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER |
Constructor Summary | |
---|---|
NullAuthenticator()
|
Method Summary | |
---|---|
protected java.security.Principal |
authenticate(java.security.Principal user,
PasswordCredentials cred,
java.lang.Object details)
Main authenticator API. |
boolean |
isUserInRole(java.security.Principal user,
java.lang.String role)
Returns true if the user plays the named role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NullAuthenticator()
Method Detail |
---|
protected java.security.Principal authenticate(java.security.Principal user, PasswordCredentials cred, java.lang.Object details)
AbstractAuthenticator
authenticate
in class AbstractAuthenticator
public boolean isUserInRole(java.security.Principal user, java.lang.String role)
isUserInRole
in interface Authenticator
isUserInRole
in class AbstractAuthenticator
user
- the user to testrole
- the role to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |