public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid) throws ServerException { if (log.isDebugEnabled()) { log.debug("Removing security policy from all bindings."); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) { binding.getPolicySubject().detachPolicyComponent(uuid); } } }
public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid) throws ServerException { if (log.isDebugEnabled()) { log.debug("Removing security policy from all bindings."); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) { binding.getPolicySubject().detachPolicyComponent(uuid); } } }
public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid) throws ServerException { if (log.isDebugEnabled()) { log.debug("Removing security policy from all bindings."); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) { binding.getPolicySubject().detachPolicyComponent(uuid); } } }
public Policy getEffectivePolicy() { Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); policyList.addAll(getPolicySubject().getAttachedPolicyComponents()); // AxisEndpoint AxisEndpoint axisEndpoint = getAxisEndpoint(); if (axisEndpoint != null) { policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents()); } AxisService service = null; if (axisEndpoint != null) { service = axisEndpoint.getAxisService(); } if (service != null) { PolicySubject servicePolicySubject = service.getPolicySubject(); if (servicePolicySubject != null) { policyList.addAll(servicePolicySubject.getAttachedPolicyComponents()); } } return PolicyUtil.getMergedPolicy(policyList, this); }
public void addPolicyToAllBindings(AxisService axisService, Policy policy) throws ServerException { try { if (policy.getId() == null) { // Generate an ID policy.setId(UUIDGenerator.getUUID()); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); String bindingName = binding.getName().getLocalPart(); //only UTOverTransport is allowed for HTTP if (bindingName.endsWith("HttpBinding") && (!policy.getAttributes().containsValue("UTOverTransport"))) { continue; } binding.getPolicySubject().attachPolicy(policy); // Add the new policy to the registry } } catch (Exception e) { log.error("Error in adding security policy to all bindings", e); throw new ServerException("addPoliciesToService", e); } }
public void addPolicyToAllBindings(AxisService axisService, Policy policy) throws ServerException { try { if (policy.getId() == null) { // Generate an ID policy.setId(UUIDGenerator.getUUID()); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); String bindingName = binding.getName().getLocalPart(); //only UTOverTransport is allowed for HTTP if (bindingName.endsWith("HttpBinding") && (!policy.getAttributes().containsValue("UTOverTransport"))) { continue; } binding.getPolicySubject().attachPolicy(policy); // Add the new policy to the registry } } catch (Exception e) { log.error("Error in adding security policy to all bindings", e); throw new ServerException("addPoliciesToService", e); } }
public Policy getEffectivePolicy() { Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); policyList.addAll(getPolicySubject().getAttachedPolicyComponents()); // AxisEndpoint AxisEndpoint axisEndpoint = getAxisEndpoint(); if (axisEndpoint != null) { policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents()); } AxisService service = null; if (axisEndpoint != null) { service = axisEndpoint.getAxisService(); } if (service != null) { PolicySubject servicePolicySubject = service.getPolicySubject(); if (servicePolicySubject != null) { policyList.addAll(servicePolicySubject.getAttachedPolicyComponents()); } } return PolicyUtil.getMergedPolicy(policyList, this); }
public Policy getEffectivePolicy() { Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); policyList.addAll(getPolicySubject().getAttachedPolicyComponents()); // AxisBinding AxisBinding axisBinding = getAxisBinding(); if (axisBinding != null) { policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents()); } // AxisEndpoint AxisEndpoint axisEndpoint = null; if (axisBinding != null) { axisEndpoint = axisBinding.getAxisEndpoint(); } if (axisEndpoint != null) { policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents()); } if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents()); } return PolicyUtil.getMergedPolicy(policyList, this); }
public void addPolicyToAllBindings(AxisService axisService, Policy policy) throws ServerException { try { if (policy.getId() == null) { // Generate an ID policy.setId(UUIDGenerator.getUUID()); } Map endPointMap = axisService.getEndpoints(); for (Object o : endPointMap.entrySet()) { Map.Entry entry = (Map.Entry) o; AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); String bindingName = binding.getName().getLocalPart(); //only UTOverTransport is allowed for HTTP if (bindingName.endsWith("HttpBinding") && (!policy.getAttributes().containsValue("UTOverTransport"))) { continue; } binding.getPolicySubject().attachPolicy(policy); // Add the new policy to the registry } } catch (Exception e) { log.error("Error in adding security policy to all bindings", e); throw new ServerException("addPoliciesToService", e); } }
public Policy getEffectivePolicy() { Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); policyList.addAll(getPolicySubject().getAttachedPolicyComponents()); // AxisBinding AxisBinding axisBinding = getAxisBinding(); if (axisBinding != null) { policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents()); } // AxisEndpoint AxisEndpoint axisEndpoint = null; if (axisBinding != null) { axisEndpoint = axisBinding.getAxisEndpoint(); } if (axisEndpoint != null) { policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents()); } if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents()); } return PolicyUtil.getMergedPolicy(policyList, this); }
continue; binding.getPolicySubject().attachPolicy(policy);
continue; binding.getPolicySubject().attachPolicy(policy);
int key = identifiers.length; if (key == 1) { axisBinding.getPolicySubject().attachPolicyComponents( policyComponents); } else if (key == 2 || key == 3) {
int key = identifiers.length; if (key == 1) { axisBinding.getPolicySubject().attachPolicyComponents( policyComponents); } else if (key == 2 || key == 3) {
continue; binding.getPolicySubject().attachPolicy(policy);
AxisEndpoint point = (AxisEndpoint) entry.getValue(); AxisBinding binding = point.getBinding(); java.util.Collection policies = binding.getPolicySubject() .getAttachedPolicyComponents(); Iterator policyComponents = policies.iterator();
: axisBindingOperation.getAxisBinding(); if (axisBinding != null) { policyList.addAll(axisBinding.getPolicySubject() .getAttachedPolicyComponents());
: axisBindingOperation.getAxisBinding(); if (axisBinding != null) { policyList.addAll(axisBinding.getPolicySubject() .getAttachedPolicyComponents());
: axisBindingOperation.getAxisBinding(); if (axisBinding != null && axisBinding.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true;
: axisBindingOperation.getAxisBinding(); if (axisBinding != null && axisBinding.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true;