}
}
private static void printCSIMechComponent( TaggedComponent taggedComponent, PrintWriter out)
{
final CDRInputStream is =
new CDRInputStream( (org.omg.CORBA.ORB)null,
taggedComponent.component_data);
try
{
is.openEncapsulatedArray();
CompoundSecMechList csmList = CompoundSecMechListHelper.read( is );
if( csmList!= null )
{
out.println("\t\tis stateful: " + csmList.stateful );
for( int i = 0; i < csmList.mechanism_list.length; i++ )
{
out.println("\t\tCompoundSecMech #" + i);
out.println("\t\t\ttarget_requires: " +
csmList.mechanism_list[i].target_requires );
out.print("\t\t\ttransport mechanism tag: ");
switch( csmList.mechanism_list[i].transport_mech.tag )
{
case TAG_TLS_SEC_TRANS.value:
{
out.println("TAG_TLS_SEC_TRANS");
printTlsSecTrans(csmList.mechanism_list[i].transport_mech.component_data, out);
break;
}
case TAG_NULL_TAG.value:
{
out.println("TAG_NULL_TAG");
break;
}
default:
{
out.println("Unknown tag : " +
csmList.mechanism_list[i].transport_mech.tag );
}
}
out.println("\t\t\tAS_ContextSec target_supports: " + csmList.mechanism_list[i].as_context_mech.target_supports );
out.println("\t\t\tAS_ContextSec target_requires: " + csmList.mechanism_list[i].as_context_mech.target_requires );
out.print("\t\t\tAS_ContextSec mech: " );
dumpHex(csmList.mechanism_list[i].as_context_mech.client_authentication_mech, out);
out.println();
out.print("\t\t\tAS_ContextSec target_name: " );
printNTExportedName(csmList.mechanism_list[i].as_context_mech.target_name, out);
out.println("\t\t\tSAS_ContextSec target_supports: " + csmList.mechanism_list[i].sas_context_mech.target_supports );
out.println("\t\t\tSAS_ContextSec target_requires: " + csmList.mechanism_list[i].sas_context_mech.target_requires );
for (int j = 0; j < csmList.mechanism_list[i].sas_context_mech.supported_naming_mechanisms.length; j++) {
out.print("\t\t\tSAS_ContextSec Naming mech: " );
dumpHex(csmList.mechanism_list[i].sas_context_mech.supported_naming_mechanisms[j], out);
out.println();
}
out.println("\t\t\tSAS_ContextSec Naming types: " + csmList.mechanism_list[i].sas_context_mech.supported_identity_types);
out.println();
}
}
}
finally
{
is.close();
}
}