net.daum.dna.oauth.basic
Class DefaultDaumOAuth

java.lang.Object
  extended by oauth.signpost.AbstractOAuthConsumer
      extended by oauth.signpost.basic.DefaultOAuthConsumer
          extended by net.daum.dna.oauth.basic.DefaultDaumOAuth
All Implemented Interfaces:
java.io.Serializable, DaumOAuth, oauth.signpost.OAuthConsumer

public class DefaultDaumOAuth
extends oauth.signpost.basic.DefaultOAuthConsumer
implements DaumOAuth

The Class DefaultDaumOAuth.

See Also:
Serialized Form

Constructor Summary
DefaultDaumOAuth(DaumConsumer consumer)
          Instantiates a new default daum oauth.
DefaultDaumOAuth(DaumConsumer consumer, DaumToken token)
          Instantiates a new default daum oauth.
DefaultDaumOAuth(java.lang.String consumerKey, java.lang.String consumerSecret)
          Instantiates a new default daum oauth.
DefaultDaumOAuth(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String callback)
          Instantiates a new default daum oauth.
 
Method Summary
 DaumToken getAccessToken(java.lang.String verifier)
          Gets the access token.
 java.lang.String getAuthorizeURL()
          Gets the authorize url.
 java.lang.String getAuthorizeURL(java.lang.String callback)
          Gets the authorize url.
 void setAccessToken(DaumToken token)
          Sets the access token.
 void setAccessToken(java.lang.String token, java.lang.String tokenSecret)
          Sets the access token.
 
Methods inherited from class oauth.signpost.AbstractOAuthConsumer
getConsumerKey, getConsumerSecret, getRequestParameters, getToken, getTokenSecret, setAdditionalParameters, setMessageSigner, setSendEmptyTokens, setSigningStrategy, setTokenWithSecret, sign, sign, sign
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oauth.signpost.OAuthConsumer
getConsumerKey, getConsumerSecret, getRequestParameters, getToken, getTokenSecret, setAdditionalParameters, setMessageSigner, setSendEmptyTokens, setSigningStrategy, setTokenWithSecret, sign, sign, sign
 

Constructor Detail

DefaultDaumOAuth

public DefaultDaumOAuth(DaumConsumer consumer)
                 throws java.lang.Exception
Instantiates a new default daum oauth.

Parameters:
consumer - the consumer
Throws:
java.lang.Exception - the exception

DefaultDaumOAuth

public DefaultDaumOAuth(java.lang.String consumerKey,
                        java.lang.String consumerSecret)
                 throws java.lang.Exception
Instantiates a new default daum oauth.

Parameters:
consumerKey - the consumer key
consumerSecret - the consumer secret
Throws:
java.lang.Exception

DefaultDaumOAuth

public DefaultDaumOAuth(java.lang.String consumerKey,
                        java.lang.String consumerSecret,
                        java.lang.String callback)
                 throws java.lang.Exception
Instantiates a new default daum oauth.

Parameters:
consumerKey - the consumer key
consumerSecret - the consumer secret
callback - the callback
Throws:
java.lang.Exception

DefaultDaumOAuth

public DefaultDaumOAuth(DaumConsumer consumer,
                        DaumToken token)
                 throws java.lang.Exception
Instantiates a new default daum oauth.

Parameters:
consumer - the consumer
token - the token
Throws:
java.lang.Exception
Method Detail

getAuthorizeURL

public java.lang.String getAuthorizeURL()
                                 throws java.lang.Exception
Description copied from interface: DaumOAuth
Gets the authorize url.

Specified by:
getAuthorizeURL in interface DaumOAuth
Returns:
the authorize url
Throws:
java.lang.Exception

getAuthorizeURL

public java.lang.String getAuthorizeURL(java.lang.String callback)
                                 throws java.lang.Exception
Description copied from interface: DaumOAuth
Gets the authorize url.

Specified by:
getAuthorizeURL in interface DaumOAuth
Parameters:
callback - the callback
Returns:
the authorize url
Throws:
java.lang.Exception

getAccessToken

public DaumToken getAccessToken(java.lang.String verifier)
                         throws java.lang.Exception
Description copied from interface: DaumOAuth
Gets the access token.

Specified by:
getAccessToken in interface DaumOAuth
Parameters:
verifier - the verifier
Returns:
the access token
Throws:
java.lang.Exception

setAccessToken

public void setAccessToken(java.lang.String token,
                           java.lang.String tokenSecret)
Description copied from interface: DaumOAuth
Sets the access token.

Specified by:
setAccessToken in interface DaumOAuth
Parameters:
token - the token
tokenSecret - the token secret

setAccessToken

public void setAccessToken(DaumToken token)
Description copied from interface: DaumOAuth
Sets the access token.

Specified by:
setAccessToken in interface DaumOAuth
Parameters:
token - the new access token