You are here

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

Same name and namespace in other branches
  1. 8 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 60

Class

JwtTranscoderInterface
Interface JwtTranscoderInterface.

Namespace

Drupal\jwt\Transcoder

Code

public function setAlgorithm($algorithm);