public static class BoxAuthentication.BoxAuthenticationInfo.BoxImmutableAuthenticationInfo extends BoxAuthentication.BoxAuthenticationInfo
BoxAuthentication.BoxAuthenticationInfo.BoxImmutableAuthenticationInfoBoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>FIELD_ACCESS_TOKEN, FIELD_BASE_DOMAIN, FIELD_CLIENT_ID, FIELD_EXPIRES_IN, FIELD_REFRESH_TOKEN, FIELD_USER| Modifier and Type | Method and Description |
|---|---|
void |
createFromJson(com.eclipsesource.json.JsonObject object)
Creates the BoxJsonObject from a JsonObject
|
void |
createFromJson(java.lang.String json)
Serializes a json blob into a BoxJsonObject.
|
void |
setAccessToken(java.lang.String accessToken)
Setter for access token.
|
void |
setBaseDomain(java.lang.String baseDomain)
Setter for base domain.
|
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.
|
void |
wipeOutAuth()
Wipe out all the information in this object.
|
accessToken, clone, cloneInfo, expiresIn, getBaseDomain, getClientId, getRefreshTime, getUser, refreshToken, unmodifiableObjectaddInJsonArray, addInJsonArray, 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 void setUser(BoxUser user)
BoxAuthentication.BoxAuthenticationInfosetUser in class BoxAuthentication.BoxAuthenticationInfouser - a box user this authentication corresponds to.public void createFromJson(java.lang.String json)
BoxJsonObjectcreateFromJson in class BoxJsonObjectjson - json blob to deserialize.public void createFromJson(com.eclipsesource.json.JsonObject object)
BoxJsonObjectcreateFromJson in class BoxJsonObjectobject - json object to parse.public void setAccessToken(java.lang.String accessToken)
BoxAuthentication.BoxAuthenticationInfosetAccessToken in class BoxAuthentication.BoxAuthenticationInfoaccessToken - access token associated with this authenticationpublic void setClientId(java.lang.String clientId)
BoxAuthentication.BoxAuthenticationInfosetClientId in class BoxAuthentication.BoxAuthenticationInfoclientId - client id associated with this authentication.public void setExpiresIn(java.lang.Long expiresIn)
setExpiresIn in class BoxAuthentication.BoxAuthenticationInfoexpiresIn - amount of time in which access token is valid for.public void setRefreshTime(java.lang.Long refreshTime)
BoxAuthentication.BoxAuthenticationInfosetRefreshTime in class BoxAuthentication.BoxAuthenticationInforefreshTime - device system time of last refresh.public void setRefreshToken(java.lang.String refreshToken)
BoxAuthentication.BoxAuthenticationInfosetRefreshToken in class BoxAuthentication.BoxAuthenticationInforefreshToken - refresh token associated with this authenticationpublic void setBaseDomain(java.lang.String baseDomain)
BoxAuthentication.BoxAuthenticationInfosetBaseDomain in class BoxAuthentication.BoxAuthenticationInfobaseDomain - base domain corresponding to this authenticationpublic void wipeOutAuth()
BoxAuthentication.BoxAuthenticationInfowipeOutAuth in class BoxAuthentication.BoxAuthenticationInfo