code: public function getSelectedAlgorithmMethods(array $selected_algorithms)
      {
          $result = [];
          foreach ($selected_algorithms as $algorithm) {
              Assertion::keyExists($this->algorithms, $algorithm, sprintf('The algorithm "%s" is not supported.', $algorithm));
              $result[] = $this->algorithms[$algorithm];
          }
  
          return $result;
      }
docs: @param string[] $selected_algorithms
  
  @return \Jose\Algorithm\JWAInterface[]