Class NuxeoOAuthConsumer
- java.lang.Object
-
- net.oauth.OAuthConsumer
-
- org.nuxeo.ecm.platform.oauth.consumers.NuxeoOAuthConsumer
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OAuthServerKeyManagerImpl.InternalNuxeoOAuthConsumer
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
Fields Modifier and Type Field Description static String
ALLOW_SIGNEDFETCH
protected boolean
allowBypassVerifier
protected String
dedicatedLogin
protected String
description
protected boolean
enabled
protected static Log
log
protected String
publicKey
static String
SCHEMA
static String
SIGNEDFETCH_DEDICATED_USER
static String
SIGNEDFETCH_NONE
static String
SIGNEDFETCH_OPENSOCIAL_OWNER
static String
SIGNEDFETCH_OPENSOCIAL_VIEWER
String
signedFetchSupport
-
Constructor Summary
Constructors Constructor Description NuxeoOAuthConsumer(String callbackURL, String consumerKey, String consumerSecret, net.oauth.OAuthServiceProvider serviceProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowBypassVerifier()
boolean
allowSignedFetch()
protected DocumentModel
asDocumentModel(DocumentModel entry)
static NuxeoOAuthConsumer
createFromDirectoryEntry(DocumentModel entry, String keyType)
String
getCallbackURL()
String
getConsumerKey()
String
getConsumerSecret()
String
getDescription()
String
getPublicKey()
String
getSecret(String type)
String
getSignedFetchUser()
-
-
-
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
-
log
protected static final Log log
-
publicKey
protected String publicKey
-
description
protected String description
-
signedFetchSupport
public String signedFetchSupport
-
dedicatedLogin
protected String dedicatedLogin
-
enabled
protected boolean enabled
-
allowBypassVerifier
protected boolean allowBypassVerifier
-
-
Method Detail
-
createFromDirectoryEntry
public static NuxeoOAuthConsumer createFromDirectoryEntry(DocumentModel entry, String keyType)
-
asDocumentModel
protected DocumentModel asDocumentModel(DocumentModel entry)
-
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()
-
allowBypassVerifier
public boolean allowBypassVerifier()
-
-