|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Authenticator
An interface defining the methods that must be implemented by a class to which authentication duties can be delegated.
| Method Summary | |
|---|---|
SecurityContext |
authenticate(String userId,
String password,
AuthenticationContext authContext)
Authenticates the user with the specified userId and
password credentials. |
void |
setConfiguration(String configuration)
Set authenticator configuration to be used when authenticating users. |
| Method Detail |
|---|
void setConfiguration(String configuration)
throws AuthenticatorException
Authenticator implementation. E.g., it
could be a configuration name, a filename or an option string.
configuration - configuration
AuthenticatorException
SecurityContext authenticate(String userId,
String password,
AuthenticationContext authContext)
userId and
password credentials. If the authentication is
successful, the method returns a SecurityContext
object. If the authentication fails, the method returns
null.
The userId and password arguments
may not be null.
The authContext argument can be used to perform
additional authentication checks based on the client connection
information provided in the argument. The
authContext argument may be null, in which case no
additional authentication checks should be performed.
userId - user idpassword - passwordauthContext - authentication context
SecurityContext if the authentication is
successful, null if it fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||