Package org.jclouds.openstack.config
Class OpenStackAuthenticationModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.openstack.config.OpenStackAuthenticationModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class OpenStackAuthenticationModule extends com.google.inject.AbstractModule
Configures the Rackspace authentication service connection, including logging and http transport.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenStackAuthenticationModule.GetAuthenticationResponse
-
Constructor Summary
Constructors Constructor Description OpenStackAuthenticationModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected com.google.common.base.Supplier<String>
guiceProvideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier)
protected com.google.common.base.Supplier<Date>
guiceProvideCacheBusterDate()
com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse>
provideAuthenticationResponseCache(OpenStackAuthenticationModule.GetAuthenticationResponse getAuthenticationResponse)
protected com.google.common.base.Supplier<AuthenticationResponse>
provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache, com.google.common.base.Supplier<Credentials> creds)
protected com.google.common.base.Supplier<String>
provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier)
borrowing concurrency code to ensure that caching takes place properlyprotected com.google.common.base.Supplier<Date>
provideCacheBusterDate()
-
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
-
guiceProvideAuthenticationTokenCache
@Provides @Singleton protected final com.google.common.base.Supplier<String> guiceProvideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
-
provideAuthenticationTokenCache
protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
borrowing concurrency code to ensure that caching takes place properly
-
provideAuthenticationResponseCache
@Provides @Singleton public final com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> provideAuthenticationResponseCache(OpenStackAuthenticationModule.GetAuthenticationResponse getAuthenticationResponse)
-
provideAuthenticationResponseSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<AuthenticationResponse> provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache, com.google.common.base.Supplier<Credentials> creds)
-
guiceProvideCacheBusterDate
@Provides @Singleton protected final com.google.common.base.Supplier<Date> guiceProvideCacheBusterDate()
-
provideCacheBusterDate
protected com.google.common.base.Supplier<Date> provideCacheBusterDate()
-
-