public class OneDriveTokenResponse extends com.google.api.client.json.GenericJson
expiresInSeconds
in number format. See
https://github.com/google/google-oauth-java-client/issues/62. Copy of TokenResponse
.com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OneDriveTokenResponse() |
Modifier and Type | Method and Description |
---|---|
OneDriveTokenResponse |
clone() |
String |
getAccessToken()
Returns the access token issued by the authorization server.
|
Long |
getExpiresInSeconds()
Returns the lifetime in seconds of the access token (for example 3600 for an hour) or
null for none. |
String |
getRefreshToken()
Returns the refresh token which can be used to obtain new access tokens using the same
authorization grant or
null for none. |
String |
getScope()
Returns the scope of the access token or
null for none. |
String |
getTokenType()
Returns the token type (as specified in Access Token Types).
|
OneDriveTokenResponse |
set(String fieldName,
Object value) |
OneDriveTokenResponse |
setAccessToken(String accessToken)
Sets the access token issued by the authorization server.
|
OneDriveTokenResponse |
setExpiresInSeconds(Long expiresInSeconds)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) or
null
for none. |
OneDriveTokenResponse |
setRefreshToken(String refreshToken)
Sets the refresh token which can be used to obtain new access tokens using the same
authorization grant or
null for none. |
OneDriveTokenResponse |
setScope(String scope)
Sets the scope of the access token or
null for none. |
OneDriveTokenResponse |
setTokenType(String tokenType)
Sets the token type (as specified in Access Token Types).
|
com.google.api.client.auth.oauth2.TokenResponse |
toTokenResponse() |
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public OneDriveTokenResponse()
public final String getAccessToken()
public OneDriveTokenResponse setAccessToken(String accessToken)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getTokenType()
public OneDriveTokenResponse setTokenType(String tokenType)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final Long getExpiresInSeconds()
null
for none.public OneDriveTokenResponse setExpiresInSeconds(Long expiresInSeconds)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getRefreshToken()
null
for none.public OneDriveTokenResponse setRefreshToken(String refreshToken)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public OneDriveTokenResponse setScope(String scope)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public OneDriveTokenResponse set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OneDriveTokenResponse clone()
clone
in class com.google.api.client.json.GenericJson
public com.google.api.client.auth.oauth2.TokenResponse toTokenResponse()
Copyright © 2016 Nuxeo SA. All rights reserved.