org.apache.shindig.social.core.oauth2
Class OAuth2Client

java.lang.Object
  extended by org.apache.shindig.social.core.oauth2.OAuth2Client

public class OAuth2Client
extends java.lang.Object

Represents an OAuth 2.0 client.


Nested Class Summary
static class OAuth2Client.ClientType
          Enumerated client types in the OAuth 2.0 specification.
static class OAuth2Client.Flow
           
 
Field Summary
protected  java.lang.String iconUrl
           
protected  java.lang.String id
           
protected  java.lang.String redirectURI
           
protected  java.lang.String secret
           
protected  java.lang.String title
           
protected  OAuth2Client.ClientType type
           
 
Constructor Summary
OAuth2Client()
           
 
Method Summary
 OAuth2Client.Flow getFlow()
          Gets the client's OAuth2 flow
 java.lang.String getIconUrl()
          Gets the client's icon URL.
 java.lang.String getId()
          Gets the client's ID.
 java.lang.String getRedirectURI()
          Gets the client's redirect URI.
 java.lang.String getSecret()
          Gets the client's secret.
 java.lang.String getTitle()
          Gets the client's title.
 OAuth2Client.ClientType getType()
          Gets the client's type.
 void setFlow(java.lang.String flow)
          Sets the client's OAuth2 flow (via a String flow identifier)
 void setFlowEnum(OAuth2Client.Flow flow)
          Sets the client's OAuth2 flow
 void setIconUrl(java.lang.String iconUrl)
          Sets the client's icon URL.
 void setId(java.lang.String id)
          Sets the client's ID.
 void setRedirectURI(java.lang.String redirectUri)
          Sets the client's redirect URI.
 void setSecret(java.lang.String secret)
          Sets the client's secret.
 void setTitle(java.lang.String title)
          Sets the client's title.
 void setType(OAuth2Client.ClientType type)
          Sets the client's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

secret

protected java.lang.String secret

redirectURI

protected java.lang.String redirectURI

title

protected java.lang.String title

iconUrl

protected java.lang.String iconUrl

type

protected OAuth2Client.ClientType type
Constructor Detail

OAuth2Client

public OAuth2Client()
Method Detail

getId

public java.lang.String getId()
Gets the client's ID.

Returns:
String represents the client's ID.

setId

public void setId(java.lang.String id)
Sets the client's ID.

Parameters:
id - represents the client's ID.

getSecret

public java.lang.String getSecret()
Gets the client's secret.

Returns:
String represents the client's secret

setSecret

public void setSecret(java.lang.String secret)
Sets the client's secret.

Parameters:
secret - represents the client's secret

getRedirectURI

public java.lang.String getRedirectURI()
Gets the client's redirect URI.

Returns:
String represents the client's redirect URI

setRedirectURI

public void setRedirectURI(java.lang.String redirectUri)
Sets the client's redirect URI.

Parameters:
redirectUri - represents the client's redirect URI

getTitle

public java.lang.String getTitle()
Gets the client's title.

Returns:
String represents the client's title

setTitle

public void setTitle(java.lang.String title)
Sets the client's title.

Parameters:
title - represents the client's title

getIconUrl

public java.lang.String getIconUrl()
Gets the client's icon URL.

Returns:
String represents the client's icon URL

setIconUrl

public void setIconUrl(java.lang.String iconUrl)
Sets the client's icon URL.

Parameters:
iconUrl - represents the client's icon URL

getType

public OAuth2Client.ClientType getType()
Gets the client's type.

Returns:
ClientType represents the client's type

setType

public void setType(OAuth2Client.ClientType type)
Sets the client's type.

Parameters:
clientType - represents the client's type

setFlow

public void setFlow(java.lang.String flow)
Sets the client's OAuth2 flow (via a String flow identifier)

Parameters:
flow -

setFlowEnum

public void setFlowEnum(OAuth2Client.Flow flow)
Sets the client's OAuth2 flow

Parameters:
flow -

getFlow

public OAuth2Client.Flow getFlow()
Gets the client's OAuth2 flow

Returns:


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.