public function validateRequestToken(TokenRequest $requestToken, $certificate = null)
    {
        if (empty($requestToken->getIssuer()) || empty($requestToken->getSignature())) {
            return false;
        }

        if (!is_null($certificate)) {
            return $this->verifySignature($requestToken, $certificate);
        }

        return true;
    }
public function validateRequestToken(TokenRequest $requestToken, $certificate = null)
    {
        if (empty($requestToken->getIssuer()) || empty($requestToken->getSignature())) {
            return false;
        }

        if (!is_null($certificate)) {
            return $this->verifySignature($requestToken, $certificate);
        }

        return true;
    }
public function validateRequestToken ( TokenRequest $ requestToken , $ certificate = null ) { if ( empty ( $ requestToken -> getIssuer ( ) ) || empty ( $ requestToken -> getSignature ( ) ) ) { return false ; } if ( ! is_null ( $ certificate ) ) { return $ this -> verifySignature ( $ requestToken , $ certificate ) ; } return true ; }
Validate a request token

@param TokenRequest    $requestToken
@param resource|string $certificate

@return bool
Validate a request token