org.jclouds.oauth.v2.config
Class OAuthAuthenticationModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.oauth.v2.config.OAuthAuthenticationModule
All Implemented Interfaces:
com.google.inject.Module

public class OAuthAuthenticationModule
extends com.google.inject.AbstractModule

An OAuth module to be used form other providers.

Author:
David Alves

Constructor Summary
OAuthAuthenticationModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.base.Supplier<URI> provideAuthenticationEndpoint(String endpoint)
          When oauth is used as a module the oauth endpoint is a normal property
 
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
 

Constructor Detail

OAuthAuthenticationModule

public OAuthAuthenticationModule()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

provideAuthenticationEndpoint

@Provides
@Singleton
protected com.google.common.base.Supplier<URI> provideAuthenticationEndpoint(@Named(value="oauth.endpoint")
                                                                                                String endpoint)
When oauth is used as a module the oauth endpoint is a normal property



Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.