Class 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<StringgetScopes()
        List of scopes the access token 'contains'
        Returns:
        list of scopes
      • getAppId

        public String getAppId()
        The ID of the application this access token is for.
        Returns:
        The id of the application.
      • setAppId

        public void setAppId​(String appId)
        The ID of the application this access token is for.
      • 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.
      • setUserId

        public void setUserId​(String userId)
        The ID of the user this access token is for.
      • 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'