You are here

public function JwtTranscoderInterface::setAlgorithm in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Transcoder/JwtTranscoderInterface.php \Drupal\jwt\Transcoder\JwtTranscoderInterface::setAlgorithm()

Sets the algorithm to be used for the JWT.

Parameters

string $algorithm: This can be any of the array keys returned by the getAlgorithmOptions function.

See also

getAlgorithmOptions()

1 method overrides JwtTranscoderInterface::setAlgorithm()
JwtTranscoder::setAlgorithm in src/Transcoder/JwtTranscoder.php
Sets the algorithm to be used for the JWT.

File

src/Transcoder/JwtTranscoderInterface.php, line 62

Class

JwtTranscoderInterface
Interface JwtTranscoderInterface.

Namespace

Drupal\jwt\Transcoder

Code

public function setAlgorithm($algorithm);