Class NuxeoOAuthToken
java.lang.Object
org.nuxeo.ecm.platform.oauth.tokens.NuxeoOAuthToken
- All Implemented Interfaces:
OAuthToken
Implementation of the
OAuthToken interface. Provides mapping features to DocumentModel so that Token can be
stored in a SQL Directory- Author:
- tiry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.ecm.platform.oauth.tokens.OAuthToken
OAuthToken.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNuxeoOAuthToken(String consumerKey, String callBack) NuxeoOAuthToken(DocumentModel entry) NuxeoOAuthToken(NuxeoOAuthToken originalToken) -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()Returns consumer application identifier.Returns consumer call back url (may be used to override what is provided in theOAuthConsumerRegistry.Gets the Consumer Key.Gets creation date of the Token.Returns Nuxeo Login as determined during the authorize phase.getToken()Returns OAuth token.Returns secret associated to the Token.getType()Gets the type of token: REQUEST / ACCESS.Generic getter (not used for now).Gets the verifier code.booleanbooleanChecks is token is expired.voidsetNuxeoLogin(String login) Setter for the Login.voidGeneric setter (not used for now).voidupdateEntry(DocumentModel entry)
-
Field Details
-
SCHEMA
- See Also:
-
appId
-
callbackUrl
-
nuxeoLogin
-
token
-
tokenSecret
-
consumerKey
-
type
-
creationDate
-
verifier
-
durationInMinutes
protected long durationInMinutes -
clientToken
protected boolean clientToken -
clientId
-
-
Constructor Details
-
NuxeoOAuthToken
-
NuxeoOAuthToken
-
NuxeoOAuthToken
-
-
Method Details
-
updateEntry
-
getAppId
Description copied from interface:OAuthTokenReturns consumer application identifier.- Specified by:
getAppIdin interfaceOAuthToken
-
getCallbackUrl
Description copied from interface:OAuthTokenReturns consumer call back url (may be used to override what is provided in theOAuthConsumerRegistry.- Specified by:
getCallbackUrlin interfaceOAuthToken
-
getNuxeoLogin
Description copied from interface:OAuthTokenReturns Nuxeo Login as determined during the authorize phase.- Specified by:
getNuxeoLoginin interfaceOAuthToken
-
getToken
Description copied from interface:OAuthTokenReturns OAuth token.- Specified by:
getTokenin interfaceOAuthToken
-
getTokenSecret
Description copied from interface:OAuthTokenReturns secret associated to the Token.- Specified by:
getTokenSecretin interfaceOAuthToken
-
getConsumerKey
Description copied from interface:OAuthTokenGets the Consumer Key.- Specified by:
getConsumerKeyin interfaceOAuthToken
-
getType
Description copied from interface:OAuthTokenGets the type of token: REQUEST / ACCESS.- Specified by:
getTypein interfaceOAuthToken
-
getCreationDate
Description copied from interface:OAuthTokenGets creation date of the Token.- Specified by:
getCreationDatein interfaceOAuthToken
-
getValue
Description copied from interface:OAuthTokenGeneric getter (not used for now).- Specified by:
getValuein interfaceOAuthToken
-
setValue
Description copied from interface:OAuthTokenGeneric setter (not used for now).- Specified by:
setValuein interfaceOAuthToken
-
getVerifier
Description copied from interface:OAuthTokenGets the verifier code.- Specified by:
getVerifierin interfaceOAuthToken
-
isExpired
public boolean isExpired()Description copied from interface:OAuthTokenChecks is token is expired.- Specified by:
isExpiredin interfaceOAuthToken
-
setNuxeoLogin
Description copied from interface:OAuthTokenSetter for the Login.- Specified by:
setNuxeoLoginin interfaceOAuthToken
-
isClientToken
public boolean isClientToken() -
getClientId
-