Example #1
0
 /**
  * @return Signer
  */
 protected function getSigner()
 {
     $signer = new Signer();
     $signer->setJWTManager($this->getJWTManager())->setJWKManager($this->getJWKManager())->setJWKSetManager($this->getJWKSetManager())->setJWAManager($this->getJWAManager())->setPayloadConverter($this->getPayloadConverterManager());
     return $signer;
 }
Example #2
0
 /**
  *
  */
 private function setSigner()
 {
     $this->container['Signer'] = function ($c) {
         $signer = new Signer();
         $signer->setPayloadConverter($c['PayloadConverterManager'])->setJWAManager($c['JWAManager'])->setJWKManager($c['JWKManager'])->setJWKSetManager($c['JWKSetManager'])->setJWTManager($c['JWTManager']);
         return $signer;
     };
 }