use of com.sun.enterprise.security.integration.PermsHolder in project Payara by payara.
the class WebappClassLoader method init.
// ------------------------------------------------------ Lifecycle Methods
private void init() {
this.parent = getParent();
/* SJSAS 6317864
system = getSystemClassLoader();
*/
// START SJSAS 6317864
system = this.getClass().getClassLoader();
// END SJSAS 6317864
securityManager = System.getSecurityManager();
if (securityManager != null) {
refreshPolicy();
}
addOverridablePackage("com.sun.faces.extensions");
permissionsHolder = new PermsHolder();
}
use of com.sun.enterprise.security.integration.PermsHolder in project Payara by payara.
the class ClientClassLoaderDelegate method processDeclaredPermissions.
private void processDeclaredPermissions() throws IOException {
if (System.getSecurityManager() == null)
return;
PermissionCollection declaredPermissionCollection = PermissionsUtil.getClientDeclaredPermissions(cl);
PermissionCollection eePc = PermissionsUtil.getClientEEPolicy(cl);
PermissionCollection eeRestriction = PermissionsUtil.getClientRestrictPolicy(cl);
SMGlobalPolicyUtil.checkRestriction(eePc, eeRestriction);
SMGlobalPolicyUtil.checkRestriction(declaredPermissionCollection, eeRestriction);
permHolder = new PermsHolder(eePc, declaredPermissionCollection, eeRestriction);
}
Aggregations