You are here

SalesforceAuthTokenStorageInterface.php in Salesforce Suite 8.3

File

src/Storage/SalesforceAuthTokenStorageInterface.php
View source
<?php

namespace Drupal\salesforce\Storage;

use OAuth\Common\Storage\TokenStorageInterface;

/**
 * Add identity handling to token storage.
 *
 * @package Drupal\salesforce\Storage
 */
interface SalesforceAuthTokenStorageInterface extends TokenStorageInterface {

  /**
   * Setter for identity storage.
   *
   * @return $this
   */
  public function storeIdentity($service, $identity);

  /**
   * Return boolean indicating whether this service has an identity.
   *
   * @return bool
   *   TRUE if the service has an identity.
   */
  public function hasIdentity($service);

  /**
   * Identity for the given service.
   *
   * @return array
   *   Identity.
   */
  public function retrieveIdentity($service);

  /**
   * Clear identity for service.
   *
   * @return $this
   */
  public function clearIdentity($service);

}

Interfaces

Namesort descending Description
SalesforceAuthTokenStorageInterface Add identity handling to token storage.