diff --git a/modules/salesforce_encrypt/src/Rest/RestClient.php b/modules/salesforce_encrypt/src/Rest/RestClient.php
index 09e82c3f4f6a647008c3190cd61ec46f1ba6a29d..abc0c7131fd497c237fe5824d44d7157607f466a 100644
--- a/modules/salesforce_encrypt/src/Rest/RestClient.php
+++ b/modules/salesforce_encrypt/src/Rest/RestClient.php
@@ -196,7 +196,7 @@ class RestClient extends SalesforceRestClient implements EncryptedRestClientInte
   /**
    * Get refresh token.
    */
-  protected function getRefreshToken() {
+  public function getRefreshToken() {
     $token = $this->getDecrypted('salesforce.refresh_token');
     return $token;
   }
@@ -207,14 +207,14 @@ class RestClient extends SalesforceRestClient implements EncryptedRestClientInte
    * @param string $token
    *   Refresh token from Salesforce.
    */
-  protected function setRefreshToken($token) {
+  public function setRefreshToken($token) {
     return $this->setEncrypted('salesforce.refresh_token', $token);
   }
 
   /**
    *
    */
-  protected function setIdentity($data) {
+  public function setIdentity($data) {
     try {
       $profile_id = $this->getEncryptionProfile();
     }