コード例 #1
0
ファイル: JWTCreator.php プロジェクト: spomky-labs/jose
 /**
  * {@inheritdoc}
  */
 public function getSupportedSignatureAlgorithms()
 {
     return $this->signer->getSupportedSignatureAlgorithms();
 }
コード例 #2
0
 /**
  * @param array $claims
  * @param array $protected_headers
  *
  * @return string
  */
 public function sign(array $claims, array $protected_headers)
 {
     $instruction = new SignatureInstruction($this->signature_key, $protected_headers);
     return $this->signer->sign($claims, [$instruction], JSONSerializationModes::JSON_COMPACT_SERIALIZATION);
 }