Class AuthenticationModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.openstack.keystone.auth.config.AuthenticationModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
CloudIdentityAuthenticationModule
,SwiftAuthenticationModule
public class AuthenticationModule extends com.google.inject.AbstractModule
-
-
Constructor Summary
Constructors Constructor Description AuthenticationModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,AuthenticationApi>
authenticationApis(com.google.inject.Injector i)
protected com.google.common.base.Function<Credentials,AuthInfo>
authenticationMethodForCredentialType(String credentialType, Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods)
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>>
authenticationMethods(com.google.inject.Injector i)
protected void
configure()
protected AuthenticationApi
provideAuthenticationApi(com.google.inject.Injector i, String keystoneVersion)
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>>
provideAuthenticationMethods(com.google.inject.Injector i)
protected com.google.common.base.Supplier<String>
provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier)
borrowing concurrency code to ensure that caching takes place properlycom.google.common.cache.LoadingCache<Credentials,AuthInfo>
provideAuthInfoCache(com.google.common.base.Function<Credentials,AuthInfo> getAccess)
protected com.google.common.base.Supplier<AuthInfo>
provideAuthInfoSupplier(com.google.common.cache.LoadingCache<Credentials,AuthInfo> cache, com.google.common.base.Supplier<Credentials> creds)
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
provideAuthenticationApi
@Provides @Singleton protected final AuthenticationApi provideAuthenticationApi(com.google.inject.Injector i, @Named("jclouds.keystone.version") String keystoneVersion)
-
authenticationApis
protected Map<String,AuthenticationApi> authenticationApis(com.google.inject.Injector i)
-
provideAuthenticationTokenCache
@Provides @Singleton protected final com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier) throws InterruptedException, ExecutionException, TimeoutException
borrowing concurrency code to ensure that caching takes place properly
-
provideAuthenticationMethods
@Provides @Singleton protected final Map<String,com.google.common.base.Function<Credentials,AuthInfo>> provideAuthenticationMethods(com.google.inject.Injector i)
-
authenticationMethods
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods(com.google.inject.Injector i)
-
authenticationMethodForCredentialType
@Provides @Singleton protected final com.google.common.base.Function<Credentials,AuthInfo> authenticationMethodForCredentialType(@Named("jclouds.keystone.credential-type") String credentialType, Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods)
-
provideAuthInfoCache
@Provides @Singleton public final com.google.common.cache.LoadingCache<Credentials,AuthInfo> provideAuthInfoCache(com.google.common.base.Function<Credentials,AuthInfo> getAccess)
-
provideAuthInfoSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<AuthInfo> provideAuthInfoSupplier(com.google.common.cache.LoadingCache<Credentials,AuthInfo> cache, com.google.common.base.Supplier<Credentials> creds)
-
-