|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.inject.AbstractModule org.jclouds.openstack.config.OpenStackAuthenticationModule
public class OpenStackAuthenticationModule
Configures the Rackspace authentication service connection, including logging and http transport.
Nested Class Summary | |
---|---|
static class |
OpenStackAuthenticationModule.GetAuthenticationResponse
|
Constructor Summary | |
---|---|
OpenStackAuthenticationModule()
|
Method Summary | |
---|---|
protected void |
configure()
|
com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> |
provideAuthenticationResponseCache(com.google.common.base.Function<Credentials,AuthenticationResponse> getAuthenticationResponse)
|
protected com.google.common.base.Supplier<AuthenticationResponse> |
provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache,
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 properly |
protected 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, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenStackAuthenticationModule()
Method Detail |
---|
protected void configure()
configure
in class com.google.inject.AbstractModule
@Provides @Singleton protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
InterruptedException
ExecutionException
TimeoutException
@Provides @Singleton public com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> provideAuthenticationResponseCache(com.google.common.base.Function<Credentials,AuthenticationResponse> getAuthenticationResponse)
@Provides @Singleton protected com.google.common.base.Supplier<AuthenticationResponse> provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache, Credentials creds)
@Provides @Singleton protected com.google.common.base.Supplier<Date> provideCacheBusterDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |