Validates a Facebook Page Token.

@param pageToken
the token to validate.
@return true if the token is not null or empty, false otherwise.
332173
private static boolean validatePageToken(String pageToken) {
		if (pageToken == null || "".equals(pageToken)) {
			logger.error("FbBotMill validation error: Page token can't be null or empty! Have you called the method FbBotMillContext.getInstance().setup(String, String)?");
			return false;
		}
		return true;
	}
185527
func (s *GetInstanceSnapshotsInput) SetPageToken(v string) *GetInstanceSnapshotsInput {
	s.PageToken = &v
	return s
}
462863
func (s *ListBudgetsForResourceInput) SetPageToken(v string) *ListBudgetsForResourceInput {
	s.PageToken = &v
	return s
}
1059659
public function validateToken($token)
    {
        /*
         | Return false if given token is not string
         */
        if (!is_string($token)) {
            return false;
        }

        if (isset($this->storage->csrf_tokens[$token])) {
            $this->storage->csrf_tokens = [trim($token) => null];

            return true;
        }

        return false;
    }
134824
func (s *ListTagOptionsInput) SetPageToken(v string) *ListTagOptionsInput {
	s.PageToken = &v
	return s
}
35005
public SignedJWT verifyToken(String jwtString) throws ParseException {
        try {
            SignedJWT jwt = SignedJWT.parse(jwtString);
            if (jwt.verify(new MACVerifier(this.jwtSharedSecret))) {
                return jwt;
            }
            return null;
        } catch (JOSEException e) {
            throw new RuntimeException("Error verifying JSON Web Token", e);
        }
    }
1014762
func (s *ListResourcesForTagOptionInput) SetPageToken(v string) *ListResourcesForTagOptionInput {
	s.PageToken = &v
	return s
}
383957
func (s *ListAcceptedPortfolioSharesInput) SetPageToken(v string) *ListAcceptedPortfolioSharesInput {
	s.PageToken = &v
	return s
}
254689
boolean setToken(char token[], byte tokenstring[])
    {
        if (token != null && tokenstring != null && token.length > 0 &&
            tokenstring.length > 0) {
            m_tokentable_ = token;
            m_tokenstring_ = tokenstring;
            return true;
        }
        return false;
    }
1251233
protected function isTokenValid($tokenString)
    {
        try {
            $user = ApiToken::validateToken($tokenString);

            // We need to make the login provider understand that we're now authenticated.
            $this->logUserIn($user);
        } catch (TokenInvalidException $er) {
            throw new ForceResponseException(new TokenAuthorisationRequiredResponse($this));
        }

        return true;
    }
373928
public function validate($authTokenPayload) {

    if($authTokenPayload == null) {
      return false;
    }

    $tokenResponse = $this->tokens->find($authTokenPayload);

    if($tokenResponse == null) {
      return false;
    }

    $user = $this->users->retrieveByID( $tokenResponse->getAuthIdentifier() );

    if($user == null) {
      return false;
    }

    return $user;
  }
207363
func (s *SearchProvisionedProductsInput) SetPageToken(v string) *SearchProvisionedProductsInput {
	s.PageToken = &v
	return s
}
501148
public static boolean isValid(AppIdToken appIdToken, String appId, String token) {
        if (appIdToken == null || StringUtil.isEmpty(appId) || StringUtil.isEmpty(token)) {
            return false;
        }
        return appIdToken.appId.equals(appId) && appIdToken.token.equals(token);
    }
62683
public boolean validToken(String token, String openid) {
        BeanUtil.requireNonNull(token, "token is null");
        BeanUtil.requireNonNull(openid, "openid is null");
        String url = BASE_API_URL + "sns/auth?access_token=" + token + "&openid=" + openid;
        BaseResponse r = executeGet(url);
        return isSuccess(r.getErrcode());
    }
14242
public static boolean isValid(String token)
    {
        if (token == null || token.length() == 0)
        {
            return false;
        }

        int len = token.length();

        for (int i = 0; i < len; ++i)
        {
            if (isSeparator(token.charAt(i)))
            {
                return false;
            }
        }

        return true;
    }
1151766
func (s *ListLaunchPathsInput) SetPageToken(v string) *ListLaunchPathsInput {
	s.PageToken = &v
	return s
}
364178
func (s *GetBlueprintsInput) SetPageToken(v string) *GetBlueprintsInput {
	s.PageToken = &v
	return s
}