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 Details

    • AuthenticationModule

      public AuthenticationModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule
    • provideAuthenticationApi

      @Provides @Singleton protected final AuthenticationApi provideAuthenticationApi(com.google.inject.Injector i, @Named("jclouds.keystone.version") String keystoneVersion)
    • authenticationApis

      protected Map<String,AuthenticationApi> authenticationApis(com.google.inject.Injector i)
    • 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
      Throws:
      InterruptedException
      ExecutionException
      TimeoutException
    • provideAuthenticationMethods

      @Provides @Singleton protected final Map<String,com.google.common.base.Function<Credentials,AuthInfo>> provideAuthenticationMethods(com.google.inject.Injector i)
    • authenticationMethods

      protected Map<String,com.google.common.base.Function<Credentials,AuthInfo>> authenticationMethods(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)