public class InMemoryAuthenticationManager extends Object implements AuthenticationService
| Constructor and Description |
|---|
InMemoryAuthenticationManager() |
| 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.
|
void |
setDefaults(String domain,
String user,
String password)
Set the default (and the only) credentials this manager will recognize.
|
Authentication |
validate(String token)
Determines whether the specified authentication token is valid and if
so, provides the associated authentication data.
|
public void setDefaults(String domain, String user, String password)
domain - authentication domainuser - userpassword - user passwordpublic Authentication authenticate(String domain, String user, String password)
AuthenticationServiceauthenticate in interface AuthenticationServicedomain - authentication domainuser - user namepassword - user passwordpublic Authentication validate(String token)
AuthenticationServicevalidate in interface AuthenticationServicetoken - token to be validatedAuthenticationService.authenticate(String, String, String)public void invalidate(String token)
AuthenticationServiceinvalidate in interface AuthenticationServicetoken - token to be invalidatedCopyright © 2014. All Rights Reserved.