public class KeystoneAuthenticationModule
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static class |
KeystoneAuthenticationModule.ProviderModule
For global services who have no regions, such as DNS.
|
static class |
KeystoneAuthenticationModule.RegionModule |
static class |
KeystoneAuthenticationModule.ZoneModule |
Constructor and Description |
---|
KeystoneAuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.Function<Credentials,Access> |
authenticationMethodForCredentialType(String credentialType,
Map<String,com.google.common.base.Function<Credentials,Access>> authenticationMethods) |
protected Map<String,com.google.common.base.Function<Credentials,Access>> |
authenticationMethods(com.google.inject.Injector i) |
protected void |
configure() |
com.google.common.cache.LoadingCache<Credentials,Access> |
provideAccessCache(com.google.common.base.Function<Credentials,Access> getAccess) |
protected com.google.common.base.Supplier<Access> |
provideAccessSupplier(com.google.common.cache.LoadingCache<Credentials,Access> cache,
com.google.common.base.Supplier<Credentials> creds) |
protected com.google.common.base.Supplier<String> |
provideAuthenticationTokenCache(com.google.common.base.Supplier<Access> supplier)
borrowing concurrency code to ensure that caching takes place properly
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
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<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton protected Map<String,com.google.common.base.Function<Credentials,Access>> authenticationMethods(com.google.inject.Injector i)
@Provides @Singleton protected com.google.common.base.Function<Credentials,Access> authenticationMethodForCredentialType(@Named(value="jclouds.keystone.credential-type") String credentialType, Map<String,com.google.common.base.Function<Credentials,Access>> authenticationMethods)
@Provides @Singleton public com.google.common.cache.LoadingCache<Credentials,Access> provideAccessCache(com.google.common.base.Function<Credentials,Access> getAccess)
@Provides @Singleton protected com.google.common.base.Supplier<Access> provideAccessSupplier(com.google.common.cache.LoadingCache<Credentials,Access> cache, com.google.common.base.Supplier<Credentials> creds)
Copyright © 2009-2013 jclouds. All Rights Reserved.