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 static String generateId(AxisDescription description) { PolicySubject policySubject = description.getPolicySubject(); String identifier = "-policy-1"; if (description instanceof AxisMessage) { identifier = "msg-" + ((AxisMessage) description).getName() + identifier; description = description.getParent(); } if (description instanceof AxisOperation) { identifier = "op-" + ((AxisOperation) description).getName() + identifier; description = description.getParent(); } if (description instanceof AxisService) { identifier = "service-" + ((AxisService) description).getName() + identifier; } /* * Int 49 is the value of the Character '1'. Here we want to change '1' * to '2' or '2' to '3' .. etc. to construct a unique identifier. */ for (int index = 49; policySubject.getAttachedPolicyComponent(identifier) != null; index++) { identifier = identifier.replace((char) index, (char) (index + 1)); } return identifier; }
public static String generateId(AxisDescription description) { PolicySubject policySubject = description.getPolicySubject(); String identifier = "-policy-1"; if (description instanceof AxisMessage) { identifier = "msg-" + ((AxisMessage) description).getName() + identifier; description = description.getParent(); } if (description instanceof AxisOperation) { identifier = "op-" + ((AxisOperation) description).getName() + identifier; description = description.getParent(); } if (description instanceof AxisService) { identifier = "service-" + ((AxisService) description).getName() + identifier; } /* * Int 49 is the value of the Character '1'. Here we want to change '1' * to '2' or '2' to '3' .. etc. to construct a unique identifier. */ for (int index = 49; policySubject.getAttachedPolicyComponent(identifier) != null; index++) { identifier = identifier.replace((char) index, (char) (index + 1)); } return identifier; }