Package com.restfb.types
Class DebugTokenInfo
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.DebugTokenInfo
-
- All Implemented Interfaces:
Serializable
public class DebugTokenInfo extends AbstractFacebookType
Represents the result of a
See Debug access tokensFacebookClient.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 ID of the application this access token is for.String
getApplication()
Name of the application this access token is for.Date
getDataAccessExpiresAt()
Timestamp when app's access to user data expires.DebugTokenError
getDebugTokenError()
All Error data associated with access token debug.Date
getExpiresAt()
The date on which the access token expires.List<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()
For impersonated access tokens, the ID of the page this token contains.List<String>
getScopes()
List of scopes the access token 'contains'String
getType()
String
getUserId()
The ID of the user this access token is for.boolean
isValid()
Whether the token is valid.void
setAppId(String appId)
The ID of the application this access token is for.void
setApplication(String application)
Name of the application this access token is for.void
setDataAccessExpiresAt(Date dataAccessExpiresAt)
Timestamp when app's access to user data expires.void
setIssuedAt(Date issuedAt)
The date on which the access token was issued.void
setMetadata(JsonObject metadata)
General metadata associated with the access token.void
setProfileId(String profileId)
For impersonated access tokens, the ID of the page this token contains.void
setType(String type)
void
setUserId(String userId)
The ID of the user this access token is for.void
setValid(boolean isValid)
Whether the token is valid.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
DebugTokenInfo
public DebugTokenInfo()
-
-
Method Detail
-
getExpiresAt
public Date getExpiresAt()
The date on which the access token expires.- Returns:
- The date on which the access token expires.
-
getScopes
public List<String> getScopes()
List of scopes the access token 'contains'- Returns:
- list of scopes
-
getGranularScopes
public List<GranularScope> getGranularScopes()
List of granular scopes the access token 'contains'- Returns:
- list of granular scopes
-
getDebugTokenError
public DebugTokenError getDebugTokenError()
All Error data associated with access token debug.- Returns:
- debug token error
-
getAppId
public String getAppId()
The ID of the application this access token is for.- Returns:
- The id of the application.
-
getApplication
public String getApplication()
Name of the application this access token is for.- Returns:
- The name of the application.
-
setApplication
public void setApplication(String application)
Name of the application this access token is for.
-
getDataAccessExpiresAt
public Date getDataAccessExpiresAt()
Timestamp when app's access to user data expires.- Returns:
- The date when app's access to user data expires.
-
setDataAccessExpiresAt
public void setDataAccessExpiresAt(Date dataAccessExpiresAt)
Timestamp 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.
-
setIssuedAt
public void setIssuedAt(Date issuedAt)
The date on which the access token was issued.
-
isValid
public boolean isValid()
Whether the token is valid.- Returns:
- Whether the token is valid.
-
setValid
public void setValid(boolean isValid)
Whether the token is valid.
-
getUserId
public String getUserId()
The ID of the user this access token is for.- Returns:
- The user id.
-
getProfileId
public String getProfileId()
For impersonated access tokens, the ID of the page this token contains.- Returns:
- the profile id
-
setProfileId
public void setProfileId(String profileId)
For impersonated access tokens, the ID of the page this token contains.
-
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
-
setMetadata
public void setMetadata(JsonObject metadata)
General metadata associated with the access token. Can contain data like 'sso', 'auth_type', 'auth_nonce'
-
-