for (int j = 0; j < secmeclist.getMechanismCount(); j++) {
CompoundSecurityMechanism mech = secmeclist
.getSecurityMechanism(j);
IIOPTransportSpec pt = null;
switch (mech.getTransportTag()) {
case TAG_SSL_SEC_TRANS.value:
case TAG_TLS_SEC_TRANS.value:
try {
pt = profile.getInetTransport();
}
catch (UnknownHostException e) {
// ignore //
}
IIOPTransportSpec[] transports = mech.getTransports(pt
.getAddress(), profile.getVersion());
for (int k = 0; k < transports.length; k++) {
addProfile(profs, profile, transports[k]);
}
if (pt != null && pt.getPort() != 0) {
IIOPTransportSpec it = new IIOPTransportSpec(
profile.getVersion(),
pt.getSocketAddress(), mech);
addProfile(profs, profile, it);
add_default_profile = false;
}