public final class AccessToken
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<AccessToken> |
CREATOR |
Constructor and Description |
---|
AccessToken(java.lang.String token,
java.lang.String accountId,
java.lang.String applicationId,
long tokenRefreshIntervalInSeconds,
java.util.Date lastRefreshTime)
Creates a new AccessToken using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAccountId()
Gets the account ID associated with the given access token
|
java.lang.String |
getApplicationId()
Gets the ID of the Facebook Application associated with this access token.
|
java.util.Date |
getLastRefresh()
Gets the date at which the token was last refreshed.
|
java.lang.String |
getToken()
Gets the string representing the access token.
|
long |
getTokenRefreshIntervalSeconds()
Gets the token refresh interval in seconds
You should make an Account Kit graph call using this token at least this often to keep the
token from expiring
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<AccessToken> CREATOR
public AccessToken(java.lang.String token, java.lang.String accountId, java.lang.String applicationId, long tokenRefreshIntervalInSeconds, @Nullable java.util.Date lastRefreshTime)
token
- the access token string obtained from AccountKitaccountId
- the AccountKit account id associated with this access tokenapplicationId
- the ID of the Facebook Application associated with this access
tokentokenRefreshIntervalInSeconds
- the interval at which tokens should be refreshedlastRefreshTime
- the last time the token was refreshed (or when it was first
obtained); if null, the current time is used.public java.lang.String getAccountId()
public java.lang.String getApplicationId()
public java.util.Date getLastRefresh()
public java.lang.String getToken()
public long getTokenRefreshIntervalSeconds()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable