Package javax.security.jacc

Examples of javax.security.jacc.PolicyConfiguration.commit()


        }

        //commit
        for (Iterator iterator = contextIdToPolicyConfigurationMap.values().iterator(); iterator.hasNext();) {
            PolicyConfiguration policyConfiguration = (PolicyConfiguration) iterator.next();
            policyConfiguration.commit();
        }

        //refresh policy
        Policy policy = Policy.getPolicy();
        policy.refresh();
View Full Code Here


        String role = (String) iter.next();
        policyConfiguration.addToRole(role, new JMSBrokerPermission(
            brokerSecurity.getBrokerName(), JMSBrokerPermission.CONNECT_ACTION));
      }

      policyConfiguration.commit();

        } catch (ClassNotFoundException e) {
      e.printStackTrace();
    } catch (PolicyContextException e) {
      e.printStackTrace();
View Full Code Here

        String role = (String) iter.next();
        policyConfiguration.addToRole(role, new JMSDestinationPermission(
            destinationSecurity.getDestination().getPhysicalName(), JMSDestinationPermission.SEND_ACTION));
      }
     
      policyConfiguration.commit();

        } catch (ClassNotFoundException e) {
      e.printStackTrace();
    } catch (PolicyContextException e) {
      e.printStackTrace();
View Full Code Here

        String role = (String) iter.next();
        policyConfiguration.addToRole(role, new JMSBrokerPermission(
            brokerSecurity.getBrokerName(), JMSBrokerPermission.CONNECT_ACTION));
      }

      policyConfiguration.commit();

        } catch (ClassNotFoundException e) {
      e.printStackTrace();
    } catch (PolicyContextException e) {
      e.printStackTrace();
View Full Code Here

            for (Map.Entry<String, PermissionCollection> entry : policyContext.getRolePermissions().entrySet()) {
                policy.addToRole(entry.getKey(), entry.getValue());
            }

            policy.commit();
        } catch (ClassNotFoundException e) {
            throw new OpenEJBException("PolicyConfigurationFactory class not found", e);
        } catch (PolicyContextException e) {
            throw new OpenEJBException("JACC PolicyConfiguration failed: ContextId=" + policyContext.getContextID(), e);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.