/**
  * @param \Jose\Algorithm\JWAInterface $algorithm
  */
 public function addAlgorithm(JWAInterface $algorithm)
 {
     $name = $algorithm->getAlgorithmName();
     if (!array_key_exists($name, $this->algorithms)) {
         $this->algorithms[$name] = $algorithm;
     }
 }