You are here

public static function JwtTranscoder::getAlgorithmOptions in JSON Web Token Authentication (JWT) 8

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

Gets a list of algorithms supported by this transcoder.

Return value

array An array of options formatted for a select list.

Overrides JwtTranscoderInterface::getAlgorithmOptions

File

src/Transcoder/JwtTranscoder.php, line 63

Class

JwtTranscoder
Class JwtTranscoder.

Namespace

Drupal\jwt\Transcoder

Code

public static function getAlgorithmOptions() {
  return [
    'HS256' => 'HMAC using SHA-256 (HS256)',
    'HS384' => 'HMAC using SHA-384 (HS384)',
    'HS512' => 'HMAC using SHA-512 (HS512)',
    'RS256' => 'RSASSA-PKCS1-v1_5 using SHA-256 (RS256)',
  ];
}