List of usage examples for java.security Permissions implies
@Override public boolean implies(Permission permission)
From source file:com.sun.socialsite.business.impl.JPAPermissionManagerImpl.java
/** * {@inheritDoc}/* w w w .j av a 2 s. c o m*/ */ public void checkPermission(Permission requiredPermission, SecurityToken token) throws SocialSiteException { Permissions grantedPermissions = getPermissions(token); log.debug("requiredPermission=" + requiredPermission); log.debug("grantedPermissions=" + grantedPermissions); if (grantedPermissions.implies(requiredPermission) == false) { throw new SecurityException("Access Denied"); } }