Interface OAuthToken
-
- All Known Implementing Classes:
NuxeoOAuthToken
public interface OAuthTokenRepresents Token data as manipulated in OAuth during the 3 legged authentication. The same interface is used for Request Token and Access Token.- Author:
- tiry
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOAuthToken.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAppId()Returns consumer application identifier.StringgetCallbackUrl()Returns consumer call back url (may be used to override what is provided in theOAuthConsumerRegistry.StringgetConsumerKey()Gets the Consumer Key.CalendargetCreationDate()Gets creation date of the Token.StringgetNuxeoLogin()Returns Nuxeo Login as determined during the authorize phase.StringgetToken()Returns OAuth token.StringgetTokenSecret()Returns secret associated to the Token.OAuthToken.TypegetType()Gets the type of token: REQUEST / ACCESS.StringgetValue(String keyName)Generic getter (not used for now).StringgetVerifier()Gets the verifier code.booleanisExpired()Checks is token is expired.voidsetNuxeoLogin(String login)Setter for the Login.voidsetValue(String keyName, String value)Generic setter (not used for now).
-
-
-
Method Detail
-
getAppId
String getAppId()
Returns consumer application identifier.
-
getCallbackUrl
String getCallbackUrl()
Returns consumer call back url (may be used to override what is provided in theOAuthConsumerRegistry.
-
getNuxeoLogin
String getNuxeoLogin()
Returns Nuxeo Login as determined during the authorize phase.
-
getToken
String getToken()
Returns OAuth token.
-
getTokenSecret
String getTokenSecret()
Returns secret associated to the Token.
-
getConsumerKey
String getConsumerKey()
Gets the Consumer Key.
-
getType
OAuthToken.Type getType()
Gets the type of token: REQUEST / ACCESS.
-
getCreationDate
Calendar getCreationDate()
Gets creation date of the Token.
-
getVerifier
String getVerifier()
Gets the verifier code.
-
isExpired
boolean isExpired()
Checks is token is expired.
-
setNuxeoLogin
void setNuxeoLogin(String login)
Setter for the Login.
-
-