(iorDesc.getEstablishTrustInTarget())) { continue;
/** * Get the value of target_requires for the transport layer. */ public int getTargetRequires(EjbIORConfigurationDescriptor iorDesc) { if ( iorDesc == null ) { return 0; } int requires = 0; String integrity = iorDesc.getIntegrity(); if(integrity.equalsIgnoreCase(EjbIORConfigurationDescriptor.REQUIRED)) { requires = requires | Integrity.value; } String confidentiality = iorDesc.getConfidentiality(); if(confidentiality.equalsIgnoreCase(EjbIORConfigurationDescriptor.REQUIRED)) { requires = requires | Confidentiality.value; } String establishTrustInTarget = iorDesc.getEstablishTrustInTarget(); if(establishTrustInTarget.equalsIgnoreCase(EjbIORConfigurationDescriptor.REQUIRED)) { requires = requires | EstablishTrustInTarget.value; } String establishTrustInClient = iorDesc.getEstablishTrustInClient(); if(establishTrustInClient.equalsIgnoreCase(EjbIORConfigurationDescriptor.REQUIRED)) { requires = requires | EstablishTrustInClient.value; } return requires; }
(iorDesc.getEstablishTrustInTarget())) { continue;
/** * Get the value of target_supports for the transport layer. */ public int getTargetSupports(EjbIORConfigurationDescriptor iorDesc) { if ( iorDesc == null ) { return 0; } int supports = 0; String integrity = iorDesc.getIntegrity(); if(!integrity.equalsIgnoreCase(EjbIORConfigurationDescriptor.NONE)) { supports = supports | Integrity.value; } String confidentiality = iorDesc.getConfidentiality(); if(!confidentiality.equalsIgnoreCase(EjbIORConfigurationDescriptor.NONE)) { supports = supports | Confidentiality.value; } String establishTrustInTarget = iorDesc.getEstablishTrustInTarget(); if(!establishTrustInTarget.equalsIgnoreCase(EjbIORConfigurationDescriptor.NONE)) { supports = supports | EstablishTrustInTarget.value; } String establishTrustInClient = iorDesc.getEstablishTrustInClient(); if(!establishTrustInClient.equalsIgnoreCase(EjbIORConfigurationDescriptor.NONE)) { supports = supports | EstablishTrustInClient.value; } return supports; }
iorsb.append(ior.getIntegrity()); iorsb.append(", trust-in-target="); iorsb.append(ior.getEstablishTrustInTarget()); iorsb.append(", trust-in-client="); iorsb.append(ior.getEstablishTrustInClient());
iorsb.append(ior.getIntegrity()); iorsb.append(", trust-in-target="); iorsb.append(ior.getEstablishTrustInTarget()); iorsb.append(", trust-in-client="); iorsb.append(ior.getEstablishTrustInClient());
@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(transportNode, RuntimeTagNames.CONFIDENTIALITY, iorDesc.getConfidentiality()); appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_TARGET, iorDesc.getEstablishTrustInTarget()); appendTextChild(transportNode, RuntimeTagNames.ESTABLISH_TRUST_IN_CLIENT, iorDesc.getEstablishTrustInClient());