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 |
downloadPKICerts(String certsLocation)
Downloads required PKI certificates from Keystone server.
|
Map<String,Long> |
getRevokedTokens(String certsLocation)
Get latest revoked tokens from Keystone server.
|
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 availablevoid downloadPKICerts(String certsLocation)
certsLocation
- PKI certificates pathServiceNotFoundException
- if the required authentication service
is not availablePKICertsDownloadException
- if Keystone is not configured for PKI
or download fails for any other internal server exceptionsAuthenticationException
- if connection to keystone can't be
establishedMap<String,Long> getRevokedTokens(String certsLocation)
certsLocation
- PKI certificates pathServiceNotFoundException
- if the required authentication service
is not availableAuthenticationException
- if connection to keystone can't be
establishedGetRevokedTokensException
- if get revoked tokens call fails for
any other internal server exceptionsCopyright © 2015. All Rights Reserved.