Class BaseAuthenticator<C>
- java.lang.Object
-
- org.jclouds.openstack.keystone.auth.functions.BaseAuthenticator<C>
-
- All Implemented Interfaces:
com.google.common.base.Function<Credentials,AuthInfo>
,Function<Credentials,AuthInfo>
- Direct Known Subclasses:
AuthenticateApiAccessKeyCredentials
,AuthenticateApiKeyCredentials
,AuthenticatePasswordCredentials
,AuthenticateTokenCredentials
public abstract class BaseAuthenticator<C> extends Object implements com.google.common.base.Function<Credentials,AuthInfo>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
defaultTenantId
protected String
defaultTenantName
protected Logger
logger
protected String
projectDomainId
protected String
projectDomainName
protected boolean
requiresTenant
protected String
scope
-
Constructor Summary
Constructors Constructor Description BaseAuthenticator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AuthInfo
apply(Credentials input)
abstract AuthInfo
authenticate(TenantOrDomainAndCredentials<C> credentials)
void
checkPropertiesAreCompatible()
abstract C
createCredentials(String identity, String credential)
-
-
-
Field Detail
-
logger
protected Logger logger
-
defaultTenantName
@Inject(optional=true) protected String defaultTenantName
-
defaultTenantId
@Inject(optional=true) protected String defaultTenantId
-
requiresTenant
@Inject(optional=true) protected boolean requiresTenant
-
scope
@Inject(optional=true) protected String scope
-
projectDomainName
@Inject(optional=true) protected String projectDomainName
-
projectDomainId
@Inject(optional=true) protected String projectDomainId
-
-
Method Detail
-
checkPropertiesAreCompatible
@PostConstruct public void checkPropertiesAreCompatible()
-
apply
public AuthInfo apply(Credentials input)
- Specified by:
apply
in interfacecom.google.common.base.Function<Credentials,AuthInfo>
- Specified by:
apply
in interfaceFunction<Credentials,AuthInfo>
-
authenticate
public abstract AuthInfo authenticate(TenantOrDomainAndCredentials<C> credentials)
-
-