public interface AuthenticationService
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(String domain,
String user,
String password)
Authenticate against the specified domain using the supplied user name
and password.
|
void |
invalidate(String token)
Invalidates the specified authentication token.
|
Authentication |
validate(String token)
Determines whether the specified authentication token is valid and if
so, provides the associated authentication data.
|
Authentication authenticate(String domain, String user, String password)
domain - authentication domainuser - user namepassword - user passwordAuthenticationException - if authentication fails for some reasonServiceNotFoundException - if the required authentication service
is not availableAuthentication validate(String token)
token - token to be validatedauthenticate(String, String, String)AuthenticationException - if validation fails for some reasonServiceNotFoundException - if the required authentication service
is not availablevoid invalidate(String token)
token - token to be invalidatedAuthenticationException - if token cannot be invalidated for some
reasonServiceNotFoundException - if the required authentication service
is not availableCopyright © 2014. All Rights Reserved.