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 ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected final com.google.common.base.Supplier
<String> guiceProvideAuthenticationTokenCache
(com.google.common.base.Supplier<AuthenticationResponse> supplier) protected final com.google.common.base.Supplier
<Date> final com.google.common.cache.LoadingCache
<Credentials, AuthenticationResponse> provideAuthenticationResponseCache
(OpenStackAuthenticationModule.GetAuthenticationResponse getAuthenticationResponse) protected final 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> 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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
OpenStackAuthenticationModule
public OpenStackAuthenticationModule()
-
-
Method Details
-
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
-