/** if ejb requires no security - then skip checking the client-conformance */ private boolean skip_client_conformance (EjbIORConfigurationDescriptor ior){ String none = EjbIORConfigurationDescriptor.NONE; // sanity check if(ior == null){ return false; } // SSL is required and/or supported either if(!none.equalsIgnoreCase(ior.getIntegrity())){ return false; } if(!none.equalsIgnoreCase(ior.getConfidentiality())){ return false; } if(!none.equalsIgnoreCase(ior.getEstablishTrustInClient())){ return false; } // Username password is required if(ior.isAuthMethodRequired()){ return false; } // caller propagation is supported if(!none.equalsIgnoreCase(ior.getCallerPropagation())){ return false; } return true; } /**
callerPropagation = iorDesc.getCallerPropagation();
iorsb.append(ior.getEstablishTrustInClient()); iorsb.append(", propagation="); iorsb.append(ior.getCallerPropagation()); iorsb.append(", auth-method="); iorsb.append(ior.getAuthenticationMethod());
iorsb.append(ior.getEstablishTrustInClient()); iorsb.append(", propagation="); iorsb.append(ior.getCallerPropagation()); iorsb.append(", auth-method="); iorsb.append(ior.getAuthenticationMethod());
@Override public Node writeDescriptor(Node parent, String nodeName, EjbIORConfigurationDescriptor iorDesc) { Node iorNode = appendChild(parent, nodeName); Node transportNode = appendChild(iorNode, RuntimeTagNames.TRANSPORT_CONFIG); appendTextChild(transportNode, RuntimeTagNames.INTEGRITY, iorDesc.getIntegrity()); appendTextChild(transportNode, RuntimeTagNames.CONFIDENTIALITY, iorDesc.getConfidentiality()); appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_TARGET, iorDesc.getEstablishTrustInTarget()); appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_CLIENT, iorDesc.getEstablishTrustInClient()); // These two sub-elements should only be added if needed. Node asContextNode = appendChild(iorNode, RuntimeTagNames.AS_CONTEXT); appendTextChild(asContextNode, RuntimeTagNames.AUTH_METHOD, iorDesc.getAuthenticationMethod()); appendTextChild(asContextNode, RuntimeTagNames.REALM, iorDesc.getRealmName()); appendTextChild(asContextNode, RuntimeTagNames.REQUIRED, Boolean.valueOf(iorDesc.isAuthMethodRequired()).toString()); Node sasContextNode = appendChild(iorNode, RuntimeTagNames.SAS_CONTEXT); appendTextChild(sasContextNode, RuntimeTagNames.CALLER_PROPAGATION, iorDesc.getCallerPropagation()); return iorNode; } }
appendTextChild(sasContextNode, RuntimeTagNames.CALLER_PROPAGATION, iorDesc.getCallerPropagation()); return iorNode;