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.OAuthConsumerRepresents 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 StringALLOW_SIGNEDFETCHprotected booleanallowBypassVerifierprotected StringdedicatedLoginprotected Stringdescriptionprotected booleanenabledprotected static Loglogprotected StringpublicKeystatic StringSCHEMAstatic StringSIGNEDFETCH_DEDICATED_USERstatic StringSIGNEDFETCH_NONEstatic StringSIGNEDFETCH_OPENSOCIAL_OWNERstatic StringSIGNEDFETCH_OPENSOCIAL_VIEWERStringsignedFetchSupport
-
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 booleanallowBypassVerifier()booleanallowSignedFetch()protected DocumentModelasDocumentModel(DocumentModel entry)static NuxeoOAuthConsumercreateFromDirectoryEntry(DocumentModel entry, String keyType)StringgetCallbackURL()StringgetConsumerKey()StringgetConsumerSecret()StringgetDescription()StringgetPublicKey()StringgetSecret(String type)StringgetSignedFetchUser()
-
-
-
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()
-
-