class SharedSecret in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x src/Agent/Auth/SharedSecret.php \Drupal\drd_agent\Agent\Auth\SharedSecret
Implements the SharedSecret authentication method.
Hierarchy
- class \Drupal\drd_agent\Agent\Auth\Base implements BaseInterface
- class \Drupal\drd_agent\Agent\Auth\SharedSecret
Expanded class hierarchy of SharedSecret
1 string reference to 'SharedSecret'
- Base::getMethods in src/
Agent/ Auth/ Base.php - Get a list of all implemented authentication methods.
File
- src/
Agent/ Auth/ SharedSecret.php, line 8
Namespace
Drupal\drd_agent\Agent\AuthView source
class SharedSecret extends Base {
/**
* {@inheritdoc}
*/
public function validate(array $settings) : bool {
return $settings['secret'] === $this->storedSettings['secret'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | All the settings of the implementing authentication method. | |
Base:: |
protected | property | ||
Base:: |
public static | function | ||
Base:: |
public static | function |
Get a list of all implemented authentication methods. Overrides BaseInterface:: |
|
Base:: |
final public | function |
Verify if the given UUID is authorised to access this site. Overrides BaseInterface:: |
|
Base:: |
public | function | Base constructor. | |
SharedSecret:: |
public | function |
Validate authentication of the current request with the given settings. Overrides BaseInterface:: |