You are here

interface BaseInterface in DRD Agent 8.3

Same name in this branch
  1. 8.3 src/Crypt/BaseInterface.php \Drupal\drd_agent\Crypt\BaseInterface
  2. 8.3 src/Agent/Action/BaseInterface.php \Drupal\drd_agent\Agent\Action\BaseInterface
  3. 8.3 src/Agent/Remote/BaseInterface.php \Drupal\drd_agent\Agent\Remote\BaseInterface
  4. 8.3 src/Agent/Auth/BaseInterface.php \Drupal\drd_agent\Agent\Auth\BaseInterface
Same name and namespace in other branches
  1. 4.0.x src/Agent/Auth/BaseInterface.php \Drupal\drd_agent\Agent\Auth\BaseInterface

Interface for authentication methods.

Hierarchy

Expanded class hierarchy of BaseInterface

All classes that implement BaseInterface

1 file declares its use of BaseInterface
Base.php in src/Agent/Action/Base.php

File

src/Agent/Auth/BaseInterface.php, line 10

Namespace

Drupal\drd_agent\Agent\Auth
View source
interface BaseInterface {

  /**
   * Get a list of all implemented authentication methods.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   *
   * @return array
   *   Array of all implemented authentication methods.
   */
  public static function getMethods(ContainerInterface $container) : array;

  /**
   * Verify if the given UUID is authorised to access this site.
   *
   * @param string $uuid
   *   UUID of the authentication object that should be validated.
   *
   * @return bool
   *   TRUE if authenticated, FALSE otherwise.
   */
  public function validateUuid($uuid) : bool;

  /**
   * Validate authentication of the current request with the given settings.
   *
   * @param array $settings
   *   Authentication settings from the request.
   *
   * @return bool
   *   TRUE if authenticated, FALSE otherwise.
   */
  public function validate(array $settings) : bool;

}

Members

Namesort descending Modifiers Type Description Overrides
BaseInterface::getMethods public static function Get a list of all implemented authentication methods.
BaseInterface::validate public function Validate authentication of the current request with the given settings. 2
BaseInterface::validateUuid public function Verify if the given UUID is authorised to access this site. 1