public class KeystoneAuthenticationManager extends Object implements AuthenticationService
Modifier and Type | Field and Description |
---|---|
protected AuthClientFactory |
factory |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
KeystoneAuthenticationManager()
Creates an adapter to authenticate using Keystone server.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(String suppliedDomain,
String user,
String password)
Authenticate against the specified domain using the supplied user name
and password.
|
protected void |
downloadPKICerts()
Downloads PKI certificates into the user configured path
|
void |
downloadPKICerts(String certsLocation)
Downloads required PKI certificates from Keystone server.
|
protected int |
getCertsDownloadHour() |
protected int |
getRevocationsDownloadPeriod() |
Map<String,Long> |
getRevokedTokens(String certsLocation)
Get latest revoked tokens from Keystone server.
|
void |
init(Properties properties)
Initialize the authentication manager using the supplied properties.
|
void |
invalidate(String token)
Invalidates the specified authentication token.
|
protected boolean |
isPKIProviderSet() |
Authentication |
validate(String token)
Determines whether the specified authentication token is valid and if
so, provides the associated authentication data.
|
protected static final org.slf4j.Logger log
protected AuthClientFactory factory
public KeystoneAuthenticationManager()
public void init(Properties properties)
properties
- configuration properties that can be used to override defaultspublic Authentication authenticate(String suppliedDomain, String user, String password)
AuthenticationService
authenticate
in interface AuthenticationService
suppliedDomain
- authentication domainuser
- user namepassword
- user passwordpublic Authentication validate(String token)
AuthenticationService
validate
in interface AuthenticationService
token
- token to be validatedAuthenticationService.authenticate(String, String, String)
public void invalidate(String token)
AuthenticationService
invalidate
in interface AuthenticationService
token
- token to be invalidatedpublic void downloadPKICerts(String certsLocation)
AuthenticationService
downloadPKICerts
in interface AuthenticationService
certsLocation
- PKI certificates pathprotected void downloadPKICerts()
protected int getCertsDownloadHour()
public Map<String,Long> getRevokedTokens(String certsLocation)
AuthenticationService
getRevokedTokens
in interface AuthenticationService
certsLocation
- PKI certificates pathprotected int getRevocationsDownloadPeriod()
protected boolean isPKIProviderSet()
Copyright © 2015. All Rights Reserved.