Ejemplo n.º 1
0
 /**
  * Verify web token
  *
  * Verifies a Webtoken against an public key.
  *
  * @param AbstractPublicKey $key The key used to verify the webtoken
  * @return bool true, if the webtoken is valid
  */
 public function verify($key)
 {
     return $key->verify($this->headerSegment . "." . $this->payloadSegment, $this->getSignature());
 }