示例#1
0
文件: Claims.php 项目: sop/jwx
 /**
  * Check whether a claims set is valid in the given context.
  *
  * @param ValidationContext $ctx Validation context
  * @return bool
  */
 public function isValid(ValidationContext $ctx)
 {
     try {
         $ctx->validate($this);
     } catch (\RuntimeException $e) {
         return false;
     }
     return true;
 }