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