public static class BoxAuthentication.BoxAuthenticationInfo extends BoxJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxAuthentication.BoxAuthenticationInfo.BoxImmutableAuthenticationInfo |
BoxJsonObject.BoxJsonObjectCreator<E 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 |
| Constructor and Description |
|---|
BoxAuthenticationInfo()
Constructs an empty BoxAuthenticationInfo object.
|
BoxAuthenticationInfo(com.eclipsesource.json.JsonObject object)
Constructs a BoxAuthenticationInfo with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
accessToken() |
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() |
java.lang.String |
getBaseDomain()
Deprecated.
|
java.lang.String |
getClientId() |
java.lang.Long |
getRefreshTime()
Time the OAuth last refreshed.
|
BoxUser |
getUser() |
java.lang.String |
refreshToken() |
void |
setAccessToken(java.lang.String accessToken)
Setter for access token.
|
void |
setBaseDomain(java.lang.String baseDomain)
Deprecated.
|
void |
setClientId(java.lang.String clientId)
Setter for client id.
|
void |
setExpiresIn(java.lang.Long expiresIn) |
void |
setRefreshTime(java.lang.Long refreshTime)
Set the refresh time.
|
void |
setRefreshToken(java.lang.String refreshToken)
Setter for refresh token
|
void |
setUser(BoxUser user)
Setter for BoxUser corresponding to this authentication info.
|
static BoxAuthentication.BoxAuthenticationInfo |
unmodifiableObject(BoxAuthentication.BoxAuthenticationInfo info) |
void |
wipeOutAuth()
Wipe out all the information in this object.
|
addInJsonArray, addInJsonArray, createFromJson, createFromJson, equals, getBoxJsonObjectCreator, getPropertiesKeySet, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsJsonArray, getPropertyAsJsonObject, getPropertyAsJsonObjectArray, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringHashSet, getPropertyValue, hashCode, parseJSONMember, remove, set, set, set, set, set, set, set, set, set, 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 BoxAuthenticationInfo(com.eclipsesource.json.JsonObject object)
object - JsonObject that represents this objectpublic BoxAuthentication.BoxAuthenticationInfo clone()
clone in class java.lang.Objectpublic static void cloneInfo(BoxAuthentication.BoxAuthenticationInfo targetInfo, BoxAuthentication.BoxAuthenticationInfo sourceInfo)
targetInfo - target authentication information to copy information into.sourceInfo - source information to copy information from.public java.lang.String getClientId()
public java.lang.String accessToken()
public java.lang.String refreshToken()
public java.lang.Long expiresIn()
public void setExpiresIn(java.lang.Long expiresIn)
expiresIn - amount of time in which access token is valid for.public java.lang.Long getRefreshTime()
public void setRefreshTime(java.lang.Long refreshTime)
refreshTime - device system time of last refresh.public void setClientId(java.lang.String clientId)
clientId - client id associated with this authentication.public void setAccessToken(java.lang.String accessToken)
accessToken - access token associated with this authenticationpublic void setRefreshToken(java.lang.String refreshToken)
refreshToken - refresh token associated with this authentication@Deprecated public void setBaseDomain(java.lang.String baseDomain)
baseDomain - base domain corresponding to this authentication@Deprecated public java.lang.String getBaseDomain()
public void setUser(BoxUser user)
user - a box user this authentication corresponds to.public BoxUser getUser()
public void wipeOutAuth()
public static BoxAuthentication.BoxAuthenticationInfo unmodifiableObject(BoxAuthentication.BoxAuthenticationInfo info)