public static class BoxAuthentication.BoxAuthenticationInfo extends BoxJsonObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_ACCESS_TOKEN |
static java.lang.String |
FIELD_BASE_DOMAIN |
static java.lang.String |
FIELD_CLIENT_ID |
static java.lang.String |
FIELD_EXPIRES_IN |
static java.lang.String |
FIELD_REFRESH_TOKEN |
static java.lang.String |
FIELD_USER |
mProperties| Constructor and Description |
|---|
BoxAuthenticationInfo()
Constructs an empty BoxAuthenticationInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
accessToken()
OAuth access token.
|
BoxAuthentication.BoxAuthenticationInfo |
clone()
Creates a clone of a BoxAuthenticationInfo object.
|
static void |
cloneInfo(BoxAuthentication.BoxAuthenticationInfo targetInfo,
BoxAuthentication.BoxAuthenticationInfo sourceInfo)
Clone BoxAuthenticationInfo from source object into target object.
|
java.lang.Long |
expiresIn()
Time the oauth is going to expire (in ms).
|
java.lang.String |
getBaseDomain()
Get the base domain associated with this user.
|
java.lang.String |
getClientId() |
java.lang.Long |
getRefreshTime()
Time the OAuth last refreshed.
|
BoxUser |
getUser()
Get the BoxUser related to this authentication info.
|
protected void |
parseJSONMember(com.eclipsesource.json.JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
java.lang.String |
refreshToken()
OAuth refresh token.
|
void |
setAccessToken(java.lang.String access)
Setter for access token.
|
void |
setBaseDomain(java.lang.String baseDomain)
Setter for base domain.
|
void |
setClientId(java.lang.String clientId) |
void |
setRefreshTime(java.lang.Long refreshTime)
Set the refresh time.
|
void |
setRefreshToken(java.lang.String refresh)
Setter for refresh token
|
void |
setUser(BoxUser user)
Setter for BoxUser corresponding to this authentication info.
|
void |
wipeOutAuth()
Wipe out all the information in this object.
|
createFromJson, createFromJson, getPropertiesAsHashMap, parseJsonObject, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String FIELD_CLIENT_ID
public static final java.lang.String FIELD_ACCESS_TOKEN
public static final java.lang.String FIELD_REFRESH_TOKEN
public static final java.lang.String FIELD_EXPIRES_IN
public static final java.lang.String FIELD_USER
public static final java.lang.String FIELD_BASE_DOMAIN
public BoxAuthenticationInfo()
public BoxAuthentication.BoxAuthenticationInfo clone()
clone in class java.lang.Objectpublic static void cloneInfo(BoxAuthentication.BoxAuthenticationInfo targetInfo, BoxAuthentication.BoxAuthenticationInfo sourceInfo)
public java.lang.String getClientId()
public java.lang.String accessToken()
public java.lang.String refreshToken()
public java.lang.Long expiresIn()
public java.lang.Long getRefreshTime()
public void setRefreshTime(java.lang.Long refreshTime)
public void setClientId(java.lang.String clientId)
public void setAccessToken(java.lang.String access)
public void setRefreshToken(java.lang.String refresh)
public void setBaseDomain(java.lang.String baseDomain)
public java.lang.String getBaseDomain()
public void setUser(BoxUser user)
public BoxUser getUser()
public void wipeOutAuth()
protected void parseJSONMember(com.eclipsesource.json.JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxJsonObjectmember - the JSON member to be parsed.