messageSecurityDesc.getRequestProtectionDescriptor(); if (requestProtectionDesc != null) { ProtectionNode requestProtectionNode = new ProtectionNode(); requestProtectionNode.writeDescriptor(messageSecurityNode, WebServicesTagNames.REQUEST_PROTECTION, requestProtectionDesc); messageSecurityDesc.getResponseProtectionDescriptor(); if (responseProtectionDesc != null) { ProtectionNode responseProtectionNode = new ProtectionNode(); responseProtectionNode.writeDescriptor(messageSecurityNode, WebServicesTagNames.RESPONSE_PROTECTION, responseProtectionDesc);
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ProtectionDescriptor protectionDesc) { Element protectionNode = (Element)super.writeDescriptor(parent, nodeName, protectionDesc); // auth-source if (protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_SOURCE, protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE)); } // auth-recipient if (protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_RECIPIENT, protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT)); } return protectionNode; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, ProtectionDescriptor protectionDesc) { Element protectionNode = (Element)super.writeDescriptor(parent, nodeName, protectionDesc); // auth-source if (protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_SOURCE, protectionDesc.getAttributeValue(protectionDesc.AUTH_SOURCE)); } // auth-recipient if (protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT) != null) { setAttribute(protectionNode, WebServicesTagNames.AUTH_RECIPIENT, protectionDesc.getAttributeValue(protectionDesc.AUTH_RECIPIENT)); } return protectionNode; } }
messageSecurityDesc.getRequestProtectionDescriptor(); if (requestProtectionDesc != null) { ProtectionNode requestProtectionNode = new ProtectionNode(); requestProtectionNode.writeDescriptor(messageSecurityNode, WebServicesTagNames.REQUEST_PROTECTION, requestProtectionDesc); messageSecurityDesc.getResponseProtectionDescriptor(); if (responseProtectionDesc != null) { ProtectionNode responseProtectionNode = new ProtectionNode(); responseProtectionNode.writeDescriptor(messageSecurityNode, WebServicesTagNames.RESPONSE_PROTECTION, responseProtectionDesc);