Search in sources :

Example 1 with PermsHolder

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();
}
Also used : PermsHolder(com.sun.enterprise.security.integration.PermsHolder)

Example 2 with 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);
}
Also used : PermissionCollection(java.security.PermissionCollection) PermsHolder(com.sun.enterprise.security.integration.PermsHolder)

Aggregations

PermsHolder (com.sun.enterprise.security.integration.PermsHolder)2 PermissionCollection (java.security.PermissionCollection)1