| ITTDistinguishedName.value | ITTX509CertChain.value;
}
// transport mech is null here, this field is modified by code
// inside SSL server-side logic, adding SSL-specific information.
mech.transport_mech = new TaggedComponent(TAG_NULL_TAG.value,
EMPTY_BARR);
mech.target_requires = (short) (as_target_requires | sas_target_requires);
mech.as_context_mech = as;
mech.sas_context_mech = sas;
CompoundSecMechList mech_list = new CompoundSecMechList(false,
new CompoundSecMech[]{mech});
Any a = getOrb().create_any();
CompoundSecMechListHelper.insert(a, mech_list);
byte[] mech_data;
try {
mech_data = codec.encode_value(a);
}
catch (InvalidTypeForEncoding e) {
MARSHAL me = new MARSHAL("cannot encode security descriptor", 0,
CompletionStatus.COMPLETED_NO);
me.initCause(e);
throw me;
}
return new TaggedComponent(TAG_CSI_SEC_MECH_LIST.value, mech_data);
}