org.restlet.ext.oauth
Class OAuthParameters

java.lang.Object
  extended by org.restlet.ext.oauth.OAuthParameters

public class OAuthParameters
extends Object

Container for OAuth2 Parameters. It contains the following information

Author:
Kristoffer Gronowski

Constructor Summary
OAuthParameters(String clientId, String clientSecret)
          Constructor.
OAuthParameters(String clientId, String clientSecret, String baseRef)
          Constructor.
OAuthParameters(String clientId, String clientSecret, String baseRef, List<Role> roles)
          Constructor.
 
Method Summary
 String getAccessTokenPath()
          Returns the access token path.
 String getAuthorizePath()
          Returns the authorize path.
 Reference getBaseRef()
          Returns the base reference.
 String getClientId()
          Returns the client identifier.
 String getClientSecret()
          Returns the client secret.
 String getOwner()
          Returns the owner.
 List<Role> getRoles()
          Returns the list of roles.
 void setAccessTokenPath(String accessTokenPath)
          Sets the access token path.
 void setAuthorizePath(String authorizePath)
          Sets the authorize path.
 void setOwner(String owner)
          Sets the owner.
 void setRoles(List<Role> roles)
          Sets the list of roles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthParameters

public OAuthParameters(String clientId,
                       String clientSecret)
Constructor.

Parameters:
clientId - The client identifier.
clientSecret - The client password.

OAuthParameters

public OAuthParameters(String clientId,
                       String clientSecret,
                       String baseRef)
Constructor.

Parameters:
clientId - The client identifier.
clientSecret - The client password.
baseRef - The base reference.

OAuthParameters

public OAuthParameters(String clientId,
                       String clientSecret,
                       String baseRef,
                       List<Role> roles)
Constructor.

Parameters:
clientId - The client identifier.
clientSecret - The client password.
baseRef - The base reference.
roles - The list of user roles.
Method Detail

getAccessTokenPath

public String getAccessTokenPath()
Returns the access token path.

Returns:
The access token path.

getAuthorizePath

public String getAuthorizePath()
Returns the authorize path.

Returns:
The authorize path.

getBaseRef

public Reference getBaseRef()
Returns the base reference.

Returns:
The base reference.

getClientId

public String getClientId()
Returns the client identifier.

Returns:
The client identifier.

getClientSecret

public String getClientSecret()
Returns the client secret.

Returns:
The client secret.

getOwner

public String getOwner()
Returns the owner.

Returns:
The owner.

getRoles

public List<Role> getRoles()
Returns the list of roles.

Returns:
The list of roles.

setAccessTokenPath

public void setAccessTokenPath(String accessTokenPath)
Sets the access token path.

Parameters:
accessTokenPath - The access token path.

setAuthorizePath

public void setAuthorizePath(String authorizePath)
Sets the authorize path.

Parameters:
authorizePath - The authorize path.

setOwner

public void setOwner(String owner)
Sets the owner.

Parameters:
owner - The owner.

setRoles

public void setRoles(List<Role> roles)
Sets the list of roles.

Parameters:
roles - The list of roles.


Copyright © 2005-2013 Restlet.