You are here

public function JWTCredentials::isValid in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x modules/salesforce_jwt/src/Consumer/JWTCredentials.php \Drupal\salesforce_jwt\Consumer\JWTCredentials::isValid()

Sanity check for credentials validity.

Return value

bool TRUE if credentials are set properly. Otherwise false.

Overrides SalesforceCredentials::isValid

File

modules/salesforce_jwt/src/Consumer/JWTCredentials.php, line 73

Class

JWTCredentials
JWT credentials.

Namespace

Drupal\salesforce_jwt\Consumer

Code

public function isValid() {
  return !empty($this->loginUser) && !empty($this->consumerId) && !empty($this->keyId);
}