Example #1
0
 /**
  *
  * @see \JWX\JWS\SignatureAlgorithm::headerParameters()
  * @return JWTParameter[]
  */
 public function headerParameters()
 {
     return array_merge(parent::headerParameters(), array(AlgorithmParameter::fromAlgorithm($this)));
 }
Example #2
0
 /**
  * Get computed salt value.
  *
  * @param AlgorithmParameter $algo
  * @return string
  */
 public function salt(AlgorithmParameter $algo)
 {
     return $algo->value() . "" . $this->saltInput();
 }
Example #3
0
 /**
  *
  * @see \JWX\JWE\KeyManagementAlgorithm::headerParameters()
  * @return JWTParameter[]
  */
 public function headerParameters()
 {
     return array_merge(parent::headerParameters(), array(AlgorithmParameter::fromAlgorithm($this), InitializationVectorParameter::fromString($this->_iv)));
 }
Example #4
0
 /**
  *
  * @see \JWX\JWE\KeyManagementAlgorithm::headerParameters()
  * @return JWTParameter[]
  */
 public function headerParameters()
 {
     return array_merge(parent::headerParameters(), array(AlgorithmParameter::fromAlgorithm($this), PBES2SaltInputParameter::fromString($this->_saltInput), new PBES2CountParameter($this->_count)));
 }