org.nuxeo.ecm.platform.oauth.consumers
Class NuxeoOAuthConsumer
java.lang.Object
net.oauth.OAuthConsumer
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
Fields inherited from class net.oauth.OAuthConsumer |
ACCEPT_ENCODING, ACCESSOR_SECRET, callbackURL, consumerKey, consumerSecret, serviceProvider |
Methods inherited from class net.oauth.OAuthConsumer |
getProperty, setProperty |
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
NuxeoOAuthConsumer
public NuxeoOAuthConsumer(String callbackURL,
String consumerKey,
String consumerSecret,
net.oauth.OAuthServiceProvider serviceProvider)
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()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.