public class AuthenticationModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
AuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,AuthenticationApi> |
authenticationApis(com.google.inject.Injector i) |
protected com.google.common.base.Function<Credentials,AuthInfo> |
authenticationMethodForCredentialType(String credentialType,
Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods) |
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>> |
authenticationMethods(com.google.inject.Injector i) |
protected void |
configure() |
protected AuthenticationApi |
provideAuthenticationApi(com.google.inject.Injector i,
String keystoneVersion) |
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>> |
provideAuthenticationMethods(com.google.inject.Injector i) |
protected com.google.common.base.Supplier<String> |
provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier)
borrowing concurrency code to ensure that caching takes place properly
|
com.google.common.cache.LoadingCache<Credentials,AuthInfo> |
provideAuthInfoCache(com.google.common.base.Function<Credentials,AuthInfo> getAccess) |
protected com.google.common.base.Supplier<AuthInfo> |
provideAuthInfoSupplier(com.google.common.cache.LoadingCache<Credentials,AuthInfo> cache,
com.google.common.base.Supplier<Credentials> creds) |
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 AuthenticationApi provideAuthenticationApi(com.google.inject.Injector i, @Named(value="jclouds.keystone.version") String keystoneVersion)
protected Map<String,AuthenticationApi> authenticationApis(com.google.inject.Injector i)
@Provides @Singleton protected final com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton protected final Map<String,com.google.common.base.Function<Credentials,AuthInfo>> provideAuthenticationMethods(com.google.inject.Injector i)
protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods(com.google.inject.Injector i)
@Provides @Singleton protected final com.google.common.base.Function<Credentials,AuthInfo> authenticationMethodForCredentialType(@Named(value="jclouds.keystone.credential-type") String credentialType, Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods)
@Provides @Singleton public final com.google.common.cache.LoadingCache<Credentials,AuthInfo> provideAuthInfoCache(com.google.common.base.Function<Credentials,AuthInfo> getAccess)
@Provides @Singleton protected final com.google.common.base.Supplier<AuthInfo> provideAuthInfoSupplier(com.google.common.cache.LoadingCache<Credentials,AuthInfo> cache, com.google.common.base.Supplier<Credentials> creds)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.