You are here

public function AccessTokenValue::digest in Simple OAuth (OAuth2) & OpenID Connect 8

Digest the values to produce a token.

Return value

string

Overrides AccessTokenValueInterface::digest

File

src/AccessTokenValue.php, line 45

Class

AccessTokenValue

Namespace

Drupal\simple_oauth

Code

public function digest() {
  return Crypt::hmacBase64(Json::encode($this
    ->getValues()), Settings::getHashSalt());
}