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
Deprecated.
All OpenStack APIs rely on regions in jclouds 2.0. To be removed in jclouds 2.0.
|
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 Map<String,com.google.common.base.Function<Credentials,Access>> |
provideAuthenticationMethods(com.google.inject.Injector i) |
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 final com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton protected final Map<String,com.google.common.base.Function<Credentials,Access>> provideAuthenticationMethods(com.google.inject.Injector i)
protected Map<String,com.google.common.base.Function<Credentials,Access>> authenticationMethods(com.google.inject.Injector i)
@Provides @Singleton protected final 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 final com.google.common.cache.LoadingCache<Credentials,Access> provideAccessCache(com.google.common.base.Function<Credentials,Access> getAccess)
@Provides @Singleton protected final com.google.common.base.Supplier<Access> provideAccessSupplier(com.google.common.cache.LoadingCache<Credentials,Access> cache, com.google.common.base.Supplier<Credentials> creds)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.