public static org.omg.CSI.CompleteEstablishContext read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSI.CompleteEstablishContext result = new org.omg.CSI.CompleteEstablishContext(); result.client_context_id=in.read_ulonglong(); result.context_stateful=in.read_boolean(); result.final_context_token = org.omg.CSI.GSSTokenHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSI.CompleteEstablishContext s)
public static org.omg.CSI.CompleteEstablishContext read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSI.CompleteEstablishContext value = new org.omg.CSI.CompleteEstablishContext (); value.client_context_id = istream.read_ulonglong (); value.context_stateful = istream.read_boolean (); value.final_context_token = org.omg.CSI.GSSTokenHelper.read (istream); return value; }
public static org.omg.CSI.CompleteEstablishContext read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSI.CompleteEstablishContext value = new org.omg.CSI.CompleteEstablishContext (); value.client_context_id = istream.read_ulonglong (); value.context_stateful = istream.read_boolean (); value.final_context_token = org.omg.CSI.GSSTokenHelper.read (istream); return value; }
public static org.omg.CSI.CompleteEstablishContext read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSI.CompleteEstablishContext result = new org.omg.CSI.CompleteEstablishContext(); result.client_context_id=in.read_ulonglong(); result.context_stateful=in.read_boolean(); result.final_context_token = org.omg.CSI.GSSTokenHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSI.CompleteEstablishContext s)
void returnCompleteEstablishContext(ServerRequestInfo ri) { // Create CompleteEstablishContext SASContextBody sasBody = new SASContextBody(); CompleteEstablishContext completeMsg = new CompleteEstablishContext(); completeMsg.client_context_id = 0; completeMsg.context_stateful = false; completeMsg.final_context_token = EMPTY_BARR; sasBody.complete_msg(completeMsg); log.fine("Adding SASContextBody, discriminator = " + sasBody.discriminator()); ri.add_reply_service_context(encodeSASContextBody(sasBody), true); }
protected Any makeCompleteEstablishContext(ServerRequestInfo ri, long client_context_id, SASPolicyValues sasValues) { CompleteEstablishContext msg = new CompleteEstablishContext(); msg.client_context_id = client_context_id; msg.context_stateful = sasValues.stateful; msg.final_context_token = new byte[0]; SASContextBody contextBody = new SASContextBody(); contextBody.complete_msg(msg); Any any = orb.create_any(); SASContextBodyHelper.insert( any, contextBody ); if (ri != null) { try { ri.add_reply_service_context(new ServiceContext(SASInitializer.SecurityAttributeService, codec.encode_value( any ) ), true); } catch (Exception e) { logger.error("Error setting reply service context:" + e); throw new org.omg.CORBA.NO_PERMISSION("SAS Error setting reply service context: " + e, MinorCodes.SAS_TSS_FAILURE, CompletionStatus.COMPLETED_MAYBE); } } return any; }