Code example for PermissionCollection

Methods: implies

0
      this.delegatedManager = delegatedManager;
   } 
 
   @Override 
   public void checkPermission(Permission prmsn) {
      if (!permissions.implies(prmsn)) {
         if (delegatedManager != null) {
            delegatedManager.checkPermission(prmsn);
         } else { 
            throw new SecurityException("Operation disallowed by current security policy. "
                    + "If you believe this to be an error, please submit the resulting stack trace as a bug."); 
         } 
      } 
   } 
}