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
-
Constructor Summary
ConstructorDescriptionNuxeoOAuthToken
(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.boolean
boolean
Checks is token is expired.void
setNuxeoLogin
(String login) Setter for the Login.void
Generic setter (not used for now).void
updateEntry
(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:OAuthToken
Returns consumer application identifier.- Specified by:
getAppId
in interfaceOAuthToken
-
getCallbackUrl
Description copied from interface:OAuthToken
Returns consumer call back url (may be used to override what is provided in theOAuthConsumerRegistry
.- Specified by:
getCallbackUrl
in interfaceOAuthToken
-
getNuxeoLogin
Description copied from interface:OAuthToken
Returns Nuxeo Login as determined during the authorize phase.- Specified by:
getNuxeoLogin
in interfaceOAuthToken
-
getToken
Description copied from interface:OAuthToken
Returns OAuth token.- Specified by:
getToken
in interfaceOAuthToken
-
getTokenSecret
Description copied from interface:OAuthToken
Returns secret associated to the Token.- Specified by:
getTokenSecret
in interfaceOAuthToken
-
getConsumerKey
Description copied from interface:OAuthToken
Gets the Consumer Key.- Specified by:
getConsumerKey
in interfaceOAuthToken
-
getType
Description copied from interface:OAuthToken
Gets the type of token: REQUEST / ACCESS.- Specified by:
getType
in interfaceOAuthToken
-
getCreationDate
Description copied from interface:OAuthToken
Gets creation date of the Token.- Specified by:
getCreationDate
in interfaceOAuthToken
-
getValue
Description copied from interface:OAuthToken
Generic getter (not used for now).- Specified by:
getValue
in interfaceOAuthToken
-
setValue
Description copied from interface:OAuthToken
Generic setter (not used for now).- Specified by:
setValue
in interfaceOAuthToken
-
getVerifier
Description copied from interface:OAuthToken
Gets the verifier code.- Specified by:
getVerifier
in interfaceOAuthToken
-
isExpired
public boolean isExpired()Description copied from interface:OAuthToken
Checks is token is expired.- Specified by:
isExpired
in interfaceOAuthToken
-
setNuxeoLogin
Description copied from interface:OAuthToken
Setter for the Login.- Specified by:
setNuxeoLogin
in interfaceOAuthToken
-
isClientToken
public boolean isClientToken() -
getClientId
-