public class KeystoneAuthenticationManager extends Object implements AuthenticationService
| Modifier and Type | Field and Description |
|---|---|
protected AuthClientFactory |
factory |
| Constructor and Description |
|---|
KeystoneAuthenticationManager()
Creates an adapter to authenticate using Keystone server.
|
| 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 |
init(Properties properties)
Initialize the authentication manager using the supplied properties.
|
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.
|
protected AuthClientFactory factory
public KeystoneAuthenticationManager()
public void init(Properties properties)
properties - configuration properties that can be used to override
defaultspublic 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.