public class

LineAccessToken

extends Object
implements Parcelable
java.lang.Object
   ↳ com.linecorp.linesdk.LineAccessToken

Class Overview

Represents an access token that is used to call the Social API.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<LineAccessToken> CREATOR
Public Constructors
LineAccessToken(String accessToken, long expiresInMillis, long issuedClientTimeMillis)
Public Methods
long getEstimatedExpirationTimeMillis()
Gets the estimated time in UNIX time when the access token expires.
long getExpiresInMillis()
Gets the amount of time in milliseconds until the access token expires.
long getIssuedClientTimeMillis()
Gets the time in UNIX time when the access token information was last updated.
String getTokenString()
Gets the string representation of the access token.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<LineAccessToken> CREATOR

Public Constructors

public LineAccessToken (String accessToken, long expiresInMillis, long issuedClientTimeMillis)

Public Methods

public long getEstimatedExpirationTimeMillis ()

Gets the estimated time in UNIX time when the access token expires. The expiration time that is returned is not exact because it is calculated using time values that are cached on the client.

Returns
  • The estimated time in UNIX time when the access token expires.

public long getExpiresInMillis ()

Gets the amount of time in milliseconds until the access token expires.

Returns
  • The amount of time in milliseconds until the access token expires.

public long getIssuedClientTimeMillis ()

Gets the time in UNIX time when the access token information was last updated. This value is updated upon login, when the token is refreshed, and when the token is verified.

Returns
  • The time in UNIX time of when the access token information was last updated.

public String getTokenString ()

Gets the string representation of the access token.

Returns
  • The access token.