org.jclouds.openstack.keystone.v2_0.config
Class KeystoneAuthenticationModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule
- All Implemented Interfaces:
- com.google.inject.Module
public class KeystoneAuthenticationModule
- extends com.google.inject.AbstractModule
- Author:
- Adrian Cole
Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeystoneAuthenticationModule
public KeystoneAuthenticationModule()
configure
protected void configure()
- Specified by:
configure
in class com.google.inject.AbstractModule
provideRegionIdToURISupplierForApiVersion
@Provides
@Singleton
protected RegionIdToURISupplier provideRegionIdToURISupplierForApiVersion(@Named(value="jclouds.keystone.service-type")
String serviceType,
String apiVersion,
RegionIdToURISupplier.Factory factory)
provideAuthenticationTokenCache
@Provides
@Singleton
protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<Access> supplier)
throws InterruptedException,
ExecutionException,
TimeoutException
- borrowing concurrency code to ensure that caching takes place properly
- Throws:
InterruptedException
ExecutionException
TimeoutException
authenticationMethodForCredentialType
@Provides
@Singleton
protected com.google.common.base.Function<Credentials,Access> authenticationMethodForCredentialType(CredentialType credentialType,
AuthenticatePasswordCredentials authenticatePasswordCredentials,
AuthenticateApiAccessKeyCredentials authenticateApiAccessKeyCredentials)
provideAccessCache
@Provides
@Singleton
public com.google.common.cache.LoadingCache<Credentials,Access> provideAccessCache(com.google.common.base.Function<Credentials,Access> getAccess)
provideAccessSupplier
@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.