You are here

public function UsersJwtKeyRepository::algorithmOptions in JSON Web Token Authentication (JWT) 8

Get options for supported algorithms.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup[] Keys are JWT alg options, value is localized string object.

Overrides UsersJwtKeyRepositoryInterface::algorithmOptions

File

modules/users_jwt/src/UsersJwtKeyRepository.php, line 136

Class

UsersJwtKeyRepository
Class UsersJwtKeyRepository

Namespace

Drupal\users_jwt

Code

public function algorithmOptions() : array {
  if (empty($this->options)) {
    $this->options['RS256'] = $this
      ->t('RSA (2048 bits or more)');
  }
  return $this->options;
}