byte[] extractTransportInfo(IOR ior) {
ProfileInfoHolder holder = new ProfileInfoHolder();
// we need to extract the profile information from the IOR to see if this connection has
// any transport-level security defined.
if (org.apache.yoko.orb.OCI.IIOP.Util.extractProfileInfo(ior, holder)) {
ProfileInfo profileInfo = holder.value;
for (int i = 0; i < profileInfo.components.length; i++) {
// we're lookoing for the security mechanism items.
if (profileInfo.components[i].tag == TAG_CSI_SEC_MECH_LIST.value) {
return profileInfo.components[i].component_data;
}