|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.oauth.tokens.NuxeoOAuthToken
public class NuxeoOAuthToken
Implementation of the OAuthToken
interface. Provides mapping features
to DocumentModel so that Token can be stored in a SQL Directory
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.nuxeo.ecm.platform.oauth.tokens.OAuthToken |
---|
OAuthToken.Type |
Field Summary | |
---|---|
static String |
SCHEMA
|
Constructor Summary | |
---|---|
NuxeoOAuthToken(DocumentModel entry)
|
|
NuxeoOAuthToken(NuxeoOAuthToken originalToken)
|
|
NuxeoOAuthToken(String consumerKey,
String callBack)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SCHEMA
Constructor Detail |
---|
public NuxeoOAuthToken(String consumerKey, String callBack)
public NuxeoOAuthToken(NuxeoOAuthToken originalToken)
public NuxeoOAuthToken(DocumentModel entry) throws ClientException
ClientException
Method Detail |
---|
public void updateEntry(DocumentModel entry) throws ClientException
ClientException
public String getAppId()
OAuthToken
getAppId
in interface OAuthToken
public String getCallbackUrl()
OAuthToken
OAuthConsumerRegistry
.
getCallbackUrl
in interface OAuthToken
public String getNuxeoLogin()
OAuthToken
getNuxeoLogin
in interface OAuthToken
public String getToken()
OAuthToken
getToken
in interface OAuthToken
public String getTokenSecret()
OAuthToken
getTokenSecret
in interface OAuthToken
public String getConsumerKey()
OAuthToken
getConsumerKey
in interface OAuthToken
public OAuthToken.Type getType()
OAuthToken
getType
in interface OAuthToken
public Calendar getCreationDate()
OAuthToken
getCreationDate
in interface OAuthToken
public String getValue(String keyName)
OAuthToken
getValue
in interface OAuthToken
public void setValue(String keyName, String value)
OAuthToken
setValue
in interface OAuthToken
public String getVerifier()
OAuthToken
getVerifier
in interface OAuthToken
public boolean isExpired()
OAuthToken
isExpired
in interface OAuthToken
public void setNuxeoLogin(String login)
OAuthToken
setNuxeoLogin
in interface OAuthToken
public boolean isClientToken()
public String getClientId()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |