public class KeystoneAuthenticationModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
KeystoneAuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.Function<Credentials,Access> |
authenticationMethodForCredentialType(CredentialType credentialType,
AuthenticatePasswordCredentials authenticatePasswordCredentials,
AuthenticateApiAccessKeyCredentials authenticateApiAccessKeyCredentials) |
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,
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
|
protected RegionIdToURISupplier |
provideRegionIdToURISupplierForApiVersion(String serviceType,
String apiVersion,
RegionIdToURISupplier.Factory factory) |
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 RegionIdToURISupplier provideRegionIdToURISupplierForApiVersion(@Named(value="jclouds.keystone.service-type") String serviceType, String apiVersion, RegionIdToURISupplier.Factory factory)
@Provides @Singleton protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton protected com.google.common.base.Function<Credentials,Access> authenticationMethodForCredentialType(CredentialType credentialType, AuthenticatePasswordCredentials authenticatePasswordCredentials, AuthenticateApiAccessKeyCredentials authenticateApiAccessKeyCredentials)
@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, Credentials creds)
Copyright © 2009-2012 jclouds. All Rights Reserved.