SecurityMechanismListComponent secmeclist = (SecurityMechanismListComponent) profile
.getComponent(i);
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]);
}