|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.auth.NullAuthenticator
public class NullAuthenticator
A very simple implementation of IdentityAuthenticator that
always authenticates a user based on NamePasswordCredentials.
This is primarily useful for testing applications.
| Constructor Summary | |
|---|---|
NullAuthenticator(Properties properties)
Creates an instance of NullAuthenticator. |
|
| Method Summary | |
|---|---|
Identity |
authenticateIdentity(IdentityCredentials credentials)
Always authenticates the given user unless the credentials are not of type NamePasswordCredentials, in which case a
CredentialException is thrown. |
String[] |
getSupportedCredentialTypes()
Returns the identifiers for this IdentityAuthenticator's
supported credential types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullAuthenticator(Properties properties)
NullAuthenticator.
properties - the application's configuration properties| Method Detail |
|---|
public String[] getSupportedCredentialTypes()
IdentityAuthenticator's
supported credential types. This may contain any number of
identifiers, which are matched against the identifier of
IdentityCredentials to determine if this
IdentityAuthenticator can consume those credentials.
getSupportedCredentialTypes in interface IdentityAuthenticator
public Identity authenticateIdentity(IdentityCredentials credentials)
throws CredentialException
NamePasswordCredentials, in which case a
CredentialException is thrown.
authenticateIdentity in interface IdentityAuthenticatorcredentials - the identity's credentials, which must be an
instance of NamePasswordCredentials
CredentialException - if the wrong type of credentials were
provided
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||