Package com.restfb
Class FacebookClient.DebugTokenInfo
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.FacebookClient.DebugTokenInfo
-
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- FacebookClient
public static class FacebookClient.DebugTokenInfo extends AbstractFacebookType
Represents the result of a
FIXME does this class belong here?FacebookClient.debugToken(String)
inquiry.- Author:
- Broc Seib
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DebugTokenInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppId()
The application id.String
getApplication()
The application name.Date
getDataAccessExpiresAt()
Timestamp when app's access to user data expires.FacebookClient.DebugTokenError
getDebugTokenError()
All Error data associated with access token debug.Date
getExpiresAt()
The date on which the access token expires.List<FacebookClient.GranularScope>
getGranularScopes()
List of granular scopes the access token 'contains'Date
getIssuedAt()
The date on which the access token was issued.JsonObject
getMetaData()
General metadata associated with the access token.String
getProfileId()
the profile idList<String>
getScopes()
List of scopes the access token 'contains'String
getType()
String
getUserId()
The user id.Boolean
isValid()
Whether or not the token is valid.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
DebugTokenInfo
public DebugTokenInfo()
-
-
Method Detail
-
getApplication
public String getApplication()
The application name.- Returns:
- The name of the application.
-
getExpiresAt
public Date getExpiresAt()
The date on which the access token expires.- Returns:
- The date on which the access token expires.
-
getDataAccessExpiresAt
public Date getDataAccessExpiresAt()
Timestamp when app's access to user data expires.- Returns:
- The date when app's access to user data expires.
-
getIssuedAt
public Date getIssuedAt()
The date on which the access token was issued.- Returns:
- The date on which the access token was issued.
-
isValid
public Boolean isValid()
Whether or not the token is valid.- Returns:
- Whether or not the token is valid.
-
getProfileId
public String getProfileId()
the profile id- Returns:
- the profile id
-
getScopes
public List<String> getScopes()
List of scopes the access token 'contains'- Returns:
- list of scopes
-
getGranularScopes
public List<FacebookClient.GranularScope> getGranularScopes()
List of granular scopes the access token 'contains'- Returns:
- list of granular scopes
-
getMetaData
public JsonObject getMetaData()
General metadata associated with the access token. Can contain data like 'sso', 'auth_type', 'auth_nonce'- Returns:
- General metadata associated with the access token
-
getDebugTokenError
public FacebookClient.DebugTokenError getDebugTokenError()
All Error data associated with access token debug.- Returns:
- debug token error
-
-