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 Modifier and Type Class Description static class
OAuthModule.CredentialTypeFromPropertyOrDefault
-
Constructor Summary
Constructors Constructor Description OAuthModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OAuthFilter
authenticationFilterForCredentialType(CredentialType credentialType, Map<CredentialType,Class<? extends OAuthFilter>> authenticationFlows, com.google.inject.Injector injector)
protected Map<CredentialType,Class<? extends OAuthFilter>>
authenticationFlowMap()
protected void
configure()
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, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
oauthEndpoint
@Provides protected com.google.common.base.Supplier<URI> oauthEndpoint(@Named("oauth.endpoint") String endpoint)
-
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)
-
-