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| Modifier and Type | Field and Description | 
|---|---|
protected String | 
appId  | 
protected String | 
callbackUrl  | 
protected String | 
clientId  | 
protected boolean | 
clientToken  | 
protected String | 
consumerKey  | 
protected Calendar | 
creationDate  | 
protected long | 
durationInMinutes  | 
protected String | 
nuxeoLogin  | 
static String | 
SCHEMA  | 
protected String | 
token  | 
protected String | 
tokenSecret  | 
protected OAuthToken.Type | 
type  | 
protected String | 
verifier  | 
| 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
protected String callbackUrl
protected String nuxeoLogin
protected String tokenSecret
protected String consumerKey
protected OAuthToken.Type type
protected Calendar creationDate
protected long durationInMinutes
protected boolean clientToken
public NuxeoOAuthToken(String consumerKey, String callBack)
public NuxeoOAuthToken(NuxeoOAuthToken originalToken)
public NuxeoOAuthToken(DocumentModel entry)
public void updateEntry(DocumentModel entry)
public 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 © 2019 Nuxeo. All rights reserved.