|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.credentials.Credentials
net.netheos.pcsapi.credentials.OAuth2Credentials
public class OAuth2Credentials
Credentials contains the OAuth informations.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getAccessToken()
Get the OAuth access token |
String |
getRefreshToken()
Get the refresh token (used to renew the access token) |
String |
getTokenType()
Get the access token type |
boolean |
hasExpired()
Indicates if the access token has expired |
int |
hashCode()
|
String |
toJson()
Serialize the credentials in a JSON String. |
String |
toString()
|
void |
update(org.json.JSONObject json)
Update the credentials from a JSON request response. |
| Methods inherited from class net.netheos.pcsapi.credentials.Credentials |
|---|
createFromJson |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean hasExpired()
public String getAccessToken()
public String getRefreshToken()
public String getTokenType()
public void update(org.json.JSONObject json)
json - The JSON object containing the values to updatepublic String toJson()
Credentials
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||