Class AuthenticationModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.openstack.keystone.auth.config.AuthenticationModule
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
CloudIdentityAuthenticationModule,SwiftAuthenticationModule
public class AuthenticationModule
extends com.google.inject.AbstractModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String, AuthenticationApi> authenticationApis(com.google.inject.Injector i) protected final 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 voidprotected final AuthenticationApiprovideAuthenticationApi(com.google.inject.Injector i, String keystoneVersion) protected final Map<String, com.google.common.base.Function<Credentials, AuthInfo>> provideAuthenticationMethods(com.google.inject.Injector i) protected final com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier) borrowing concurrency code to ensure that caching takes place properlyfinal com.google.common.cache.LoadingCache<Credentials, AuthInfo> provideAuthInfoCache(com.google.common.base.Function<Credentials, AuthInfo> getAccess) protected final com.google.common.base.Supplier<AuthInfo> provideAuthInfoSupplier(com.google.common.cache.LoadingCache<Credentials, AuthInfo> cache, com.google.common.base.Supplier<Credentials> creds) 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, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
AuthenticationModule
public AuthenticationModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classcom.google.inject.AbstractModule
-
provideAuthenticationApi
@Provides @Singleton protected final AuthenticationApi provideAuthenticationApi(com.google.inject.Injector i, @Named("jclouds.keystone.version") String keystoneVersion) -
authenticationApis
-
provideAuthenticationTokenCache
@Provides @Singleton protected final com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthInfo> supplier) throws InterruptedException, ExecutionException, TimeoutException borrowing concurrency code to ensure that caching takes place properly -
provideAuthenticationMethods
@Provides @Singleton protected final Map<String,com.google.common.base.Function<Credentials, provideAuthenticationMethodsAuthInfo>> (com.google.inject.Injector i) -
authenticationMethods
protected Map<String,com.google.common.base.Function<Credentials, authenticationMethodsAuthInfo>> (com.google.inject.Injector i) -
authenticationMethodForCredentialType
@Provides @Singleton protected final com.google.common.base.Function<Credentials,AuthInfo> authenticationMethodForCredentialType(@Named("jclouds.keystone.credential-type") String credentialType, Map<String, com.google.common.base.Function<Credentials, AuthInfo>> authenticationMethods) -
provideAuthInfoCache
@Provides @Singleton public final com.google.common.cache.LoadingCache<Credentials,AuthInfo> provideAuthInfoCache(com.google.common.base.Function<Credentials, AuthInfo> getAccess) -
provideAuthInfoSupplier
@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)
-