org.jboss.resteasy.auth.oauth
Class OAuthConsumer

java.lang.Object
  extended by org.jboss.resteasy.auth.oauth.OAuthConsumer

public class OAuthConsumer
extends java.lang.Object

Represents an OAuth Consumer.

Author:
Stéphane Épardaud

Constructor Summary
OAuthConsumer(java.lang.String key, java.lang.String secret, java.lang.String displayName, java.lang.String connectURI)
           
OAuthConsumer(java.lang.String key, java.lang.String secret, java.lang.String displayName, java.lang.String connectURI, OAuthPermissions perms)
           
 
Method Summary
 java.lang.String getConnectURI()
          Returns the OAuth Consumer's connect URI.
 java.lang.String getDisplayName()
          Returns the OAuth Consumer's display name.
 java.lang.String getKey()
          Returns the OAuth Consumer's key
 OAuthPermissions getPermissions()
           
 java.lang.String[] getScopes()
          Returns the OAuth Consumer's scopes.
 java.lang.String getSecret()
          Returns the OAuth Consumer's private secret.
 void setScopes(java.lang.String[] scopes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthConsumer

public OAuthConsumer(java.lang.String key,
                     java.lang.String secret,
                     java.lang.String displayName,
                     java.lang.String connectURI)

OAuthConsumer

public OAuthConsumer(java.lang.String key,
                     java.lang.String secret,
                     java.lang.String displayName,
                     java.lang.String connectURI,
                     OAuthPermissions perms)
Method Detail

getKey

public java.lang.String getKey()
Returns the OAuth Consumer's key


getSecret

public java.lang.String getSecret()
Returns the OAuth Consumer's private secret.


getDisplayName

public java.lang.String getDisplayName()
Returns the OAuth Consumer's display name.


getConnectURI

public java.lang.String getConnectURI()
Returns the OAuth Consumer's connect URI. If provided then it will be used to validate callback URLs which consumer will provide during request token acquisition requests


getScopes

public java.lang.String[] getScopes()
Returns the OAuth Consumer's scopes. These are the scopes the consumer will be able to access directly


setScopes

public void setScopes(java.lang.String[] scopes)

getPermissions

public OAuthPermissions getPermissions()


Copyright © 2010. All Rights Reserved.