class AccessTokenValue in Simple OAuth (OAuth2) & OpenID Connect 8
Hierarchy
- class \Drupal\simple_oauth\AccessTokenValue implements AccessTokenValueInterface
Expanded class hierarchy of AccessTokenValue
1 file declares its use of AccessTokenValue
- AccessToken.php in src/
Entity/ AccessToken.php
File
- src/
AccessTokenValue.php, line 9
Namespace
Drupal\simple_oauthView source
class AccessTokenValue implements AccessTokenValueInterface {
/**
* The entity values to digest.
*
* @var array
*/
protected $values;
/**
* {@inheritdoc}
*/
public function getValues() {
return $this->values;
}
/**
* {@inheritdoc}
*/
public function setValues($values) {
$this->values = $values;
}
/**
* {@inheritdoc}
*/
public static function createFromValues(array $values) {
$token_value = new static();
$token_value
->setValues($values);
return $token_value;
}
/**
* {@inheritdoc}
*/
public function digest() {
return Crypt::hmacBase64(Json::encode($this
->getValues()), Settings::getHashSalt());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessTokenValue:: |
protected | property | The entity values to digest. | |
AccessTokenValue:: |
public static | function |
Factory method to create a token value from the entity values. Overrides AccessTokenValueInterface:: |
|
AccessTokenValue:: |
public | function |
Digest the values to produce a token. Overrides AccessTokenValueInterface:: |
|
AccessTokenValue:: |
public | function |
Gets the values. Overrides AccessTokenValueInterface:: |
|
AccessTokenValue:: |
public | function |
Sets the values. Overrides AccessTokenValueInterface:: |