You are here

public function RestClient::disableEncryption in Salesforce Suite 8.3

Decrypt and re-save sensitive salesforce config values.

Inverse of ::enableEncryption.

Return value

bool TRUE if encryption was disabled or FALSE if it is already disabled

Throws

RuntimeException If Salesforce encryption profile hasn't been selected.

Overrides EncryptedRestClientInterface::disableEncryption

1 call to RestClient::disableEncryption()
RestClient::hookEncryptionProfileDelete in modules/salesforce_encrypt/src/Rest/RestClient.php
If the given profile is our active one, disable encryption.

File

modules/salesforce_encrypt/src/Rest/RestClient.php, line 103

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce_encrypt\Rest

Code

public function disableEncryption() {
  if ($ret = $this
    ->setEncryption()) {
    $this->state
      ->resetCache();
  }
  return $ret;
}