Beispiel #1
0
 /**
  *
  * @see \JWX\JWS\SignatureAlgorithm::headerParameters()
  * @return JWTParameter[]
  */
 public function headerParameters()
 {
     return array_merge(parent::headerParameters(), array(AlgorithmParameter::fromAlgorithm($this)));
 }
Beispiel #2
0
 /**
  * Get computed salt value.
  *
  * @param AlgorithmParameter $algo
  * @return string
  */
 public function salt(AlgorithmParameter $algo)
 {
     return $algo->value() . "" . $this->saltInput();
 }
Beispiel #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)));
 }
Beispiel #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)));
 }