Package org.jclouds.oauth.v2.config
Class OAuthModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.oauth.v2.config.OAuthModule
- All Implemented Interfaces:
com.google.inject.Module
public final class OAuthModule
extends com.google.inject.AbstractModule
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OAuthFilter
authenticationFilterForCredentialType
(CredentialType credentialType, Map<CredentialType, Class<? extends OAuthFilter>> authenticationFlows, com.google.inject.Injector injector) protected Map
<CredentialType, Class<? extends OAuthFilter>> protected void
protected com.google.common.base.Supplier
<URI> oauthEndpoint
(String endpoint) 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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
OAuthModule
public OAuthModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
oauthEndpoint
-
authenticationFlowMap
@Provides @Singleton protected Map<CredentialType,Class<? extends OAuthFilter>> authenticationFlowMap() -
authenticationFilterForCredentialType
@Provides @Singleton protected OAuthFilter authenticationFilterForCredentialType(CredentialType credentialType, Map<CredentialType, Class<? extends OAuthFilter>> authenticationFlows, com.google.inject.Injector injector)
-