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:
  • Field Details

  • Constructor Details

    • NuxeoOAuthConsumer

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

    • 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()
    • getSecret

      public String getSecret(String type)
    • allowBypassVerifier

      public boolean allowBypassVerifier()