public class NuxeoOAuthToken extends Object implements OAuthToken
OAuthToken interface. Provides mapping features
 to DocumentModel so that Token can be stored in a SQL DirectoryOAuthToken.Type| Constructor and Description | 
|---|
| NuxeoOAuthToken(DocumentModel entry) | 
| NuxeoOAuthToken(NuxeoOAuthToken originalToken) | 
| NuxeoOAuthToken(String consumerKey,
               String callBack) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAppId()Returns consumer application identifier. | 
| String | getCallbackUrl()Returns consumer call back url (may be used to override what is provided
 in the  OAuthConsumerRegistry. | 
| String | getClientId() | 
| String | getConsumerKey()Gets the Consumer Key. | 
| Calendar | getCreationDate()Gets creation date of the Token. | 
| String | getNuxeoLogin()Returns Nuxeo Login as determined during the authorize phase. | 
| String | getToken()Returns OAuth token. | 
| String | getTokenSecret()Returns secret associated to the Token. | 
| OAuthToken.Type | getType()Gets the type of token: REQUEST / ACCESS. | 
| String | getValue(String keyName)Generic getter (not used for now). | 
| String | getVerifier()Gets the verifier code. | 
| boolean | isClientToken() | 
| boolean | isExpired()Checks is token is expired. | 
| void | setNuxeoLogin(String login)Setter for the Login. | 
| void | setValue(String keyName,
        String value)Generic setter (not used for now). | 
| void | updateEntry(DocumentModel entry) | 
public static final String SCHEMA
public NuxeoOAuthToken(NuxeoOAuthToken originalToken)
public NuxeoOAuthToken(DocumentModel entry) throws ClientException
ClientExceptionpublic void updateEntry(DocumentModel entry) throws ClientException
ClientExceptionpublic String getAppId()
OAuthTokengetAppId in interface OAuthTokenpublic String getCallbackUrl()
OAuthTokenOAuthConsumerRegistry.getCallbackUrl in interface OAuthTokenpublic String getNuxeoLogin()
OAuthTokengetNuxeoLogin in interface OAuthTokenpublic String getToken()
OAuthTokengetToken in interface OAuthTokenpublic String getTokenSecret()
OAuthTokengetTokenSecret in interface OAuthTokenpublic String getConsumerKey()
OAuthTokengetConsumerKey in interface OAuthTokenpublic OAuthToken.Type getType()
OAuthTokengetType in interface OAuthTokenpublic Calendar getCreationDate()
OAuthTokengetCreationDate in interface OAuthTokenpublic String getValue(String keyName)
OAuthTokengetValue in interface OAuthTokenpublic void setValue(String keyName, String value)
OAuthTokensetValue in interface OAuthTokenpublic String getVerifier()
OAuthTokengetVerifier in interface OAuthTokenpublic boolean isExpired()
OAuthTokenisExpired in interface OAuthTokenpublic void setNuxeoLogin(String login)
OAuthTokensetNuxeoLogin in interface OAuthTokenpublic boolean isClientToken()
public String getClientId()
Copyright © 2014 Nuxeo SA. All rights reserved.