Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.oauth.consumers
Class NuxeoOAuthConsumer

java.lang.Object
  extended by net.oauth.OAuthConsumer
      extended by org.nuxeo.ecm.platform.oauth.consumers.NuxeoOAuthConsumer
All Implemented Interfaces:
Serializable

public class NuxeoOAuthConsumer
extends net.oauth.OAuthConsumer

Represents a application that uses OAuth to consume a Web Service from Nuxeo. This class holds informations such and keys and name for a consumer application. The simple mapping to DocumentModel is also provided to make storage in SQL Directory easier.

Author:
tiry
See Also:
Serialized Form

Field Summary
static String ALLOW_SIGNEDFETCH
           
static String SCHEMA
           
static String SIGNEDFETCH_DEDICATED_USER
           
static String SIGNEDFETCH_NONE
           
static String SIGNEDFETCH_OPENSOCIAL_OWNER
           
static String SIGNEDFETCH_OPENSOCIAL_VIEWER
           
 
Fields inherited from class net.oauth.OAuthConsumer
ACCEPT_ENCODING, ACCESSOR_SECRET, callbackURL, consumerKey, consumerSecret, serviceProvider
 
Constructor Summary
NuxeoOAuthConsumer(String callbackURL, String consumerKey, String consumerSecret, net.oauth.OAuthServiceProvider serviceProvider)
           
 
Method Summary
 boolean allowBypassVerifier()
           
 boolean allowSignedFetch()
           
static NuxeoOAuthConsumer createFromDirectoryEntry(DocumentModel entry, String keyType)
           
 String getCallbackURL()
           
 String getConsumerKey()
           
 String getConsumerSecret()
           
 String getDescription()
           
 String getPublicKey()
           
 String getSecret(String type)
           
 String getSignedFetchUser()
           
 
Methods inherited from class net.oauth.OAuthConsumer
getProperty, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOW_SIGNEDFETCH

public static final String ALLOW_SIGNEDFETCH
See Also:
Constant Field Values

SIGNEDFETCH_NONE

public static final String SIGNEDFETCH_NONE
See Also:
Constant Field Values

SIGNEDFETCH_OPENSOCIAL_VIEWER

public static final String SIGNEDFETCH_OPENSOCIAL_VIEWER
See Also:
Constant Field Values

SIGNEDFETCH_OPENSOCIAL_OWNER

public static final String SIGNEDFETCH_OPENSOCIAL_OWNER
See Also:
Constant Field Values

SIGNEDFETCH_DEDICATED_USER

public static final String SIGNEDFETCH_DEDICATED_USER
See Also:
Constant Field Values

SCHEMA

public static final String SCHEMA
See Also:
Constant Field Values
Constructor Detail

NuxeoOAuthConsumer

public NuxeoOAuthConsumer(String callbackURL,
                          String consumerKey,
                          String consumerSecret,
                          net.oauth.OAuthServiceProvider serviceProvider)
Method Detail

createFromDirectoryEntry

public static NuxeoOAuthConsumer createFromDirectoryEntry(DocumentModel entry,
                                                          String keyType)
                                                   throws ClientException
Throws:
ClientException

getCallbackURL

public String getCallbackURL()

getConsumerKey

public String getConsumerKey()

getConsumerSecret

public String getConsumerSecret()

getPublicKey

public String getPublicKey()

allowSignedFetch

public boolean allowSignedFetch()

getSignedFetchUser

public String getSignedFetchUser()

getDescription

public String getDescription()

getSecret

public String getSecret(String type)

allowBypassVerifier

public boolean allowBypassVerifier()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.