private static Any createMsgCtxAccepted(long contextId) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxAccepted) { msgBodyCtxAccepted.complete_msg().client_context_id = contextId; SASContextBodyHelper.insert(any, msgBodyCtxAccepted); } return any; }
private static Any createMsgCtxAccepted(long contextId) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxAccepted) { msgBodyCtxAccepted.complete_msg().client_context_id = contextId; SASContextBodyHelper.insert(any, msgBodyCtxAccepted); } return any; }
private static Any createMsgCtxAccepted(long contextId) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxAccepted) { msgBodyCtxAccepted.complete_msg().client_context_id = contextId; SASContextBodyHelper.insert(any, msgBodyCtxAccepted); } return any; }
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; }
CompleteEstablishContext reply = contextBody.complete_msg();
CompleteEstablishContext reply = contextBody.complete_msg(); logger.debug("receive_exception MTCompleteEstablishContext: " + reply.client_context_id);
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSI.SASContextBody value) { ostream.write_short (value.discriminator ()); switch (value.discriminator ()) { case org.omg.CSI.MTEstablishContext.value: org.omg.CSI.EstablishContextHelper.write (ostream, value.establish_msg ()); break; case org.omg.CSI.MTCompleteEstablishContext.value: org.omg.CSI.CompleteEstablishContextHelper.write (ostream, value.complete_msg ()); break; case org.omg.CSI.MTContextError.value: org.omg.CSI.ContextErrorHelper.write (ostream, value.error_msg ()); break; case org.omg.CSI.MTMessageInContext.value: org.omg.CSI.MessageInContextHelper.write (ostream, value.in_context_msg ()); break; } }
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSI.SASContextBody value) { ostream.write_short (value.discriminator ()); switch (value.discriminator ()) { case org.omg.CSI.MTEstablishContext.value: org.omg.CSI.EstablishContextHelper.write (ostream, value.establish_msg ()); break; case org.omg.CSI.MTCompleteEstablishContext.value: org.omg.CSI.CompleteEstablishContextHelper.write (ostream, value.complete_msg ()); break; case org.omg.CSI.MTContextError.value: org.omg.CSI.ContextErrorHelper.write (ostream, value.error_msg ()); break; case org.omg.CSI.MTMessageInContext.value: org.omg.CSI.MessageInContextHelper.write (ostream, value.in_context_msg ()); break; } }
result.complete_msg (_var); break;
result.complete_msg (_var); break;
public static void write (org.omg.CORBA.portable.OutputStream out, SASContextBody s) { out.write_short(s.discriminator ()); switch (s.discriminator ()) { case 0: { org.omg.CSI.EstablishContextHelper.write(out,s.establish_msg ()); break; } case 1: { org.omg.CSI.CompleteEstablishContextHelper.write(out,s.complete_msg ()); break; } case 4: { org.omg.CSI.ContextErrorHelper.write(out,s.error_msg ()); break; } case 5: { org.omg.CSI.MessageInContextHelper.write(out,s.in_context_msg ()); break; } } } }
public static void write (org.omg.CORBA.portable.OutputStream out, SASContextBody s) { out.write_short(s.discriminator ()); switch (s.discriminator ()) { case 0: { org.omg.CSI.EstablishContextHelper.write(out,s.establish_msg ()); break; } case 1: { org.omg.CSI.CompleteEstablishContextHelper.write(out,s.complete_msg ()); break; } case 4: { org.omg.CSI.ContextErrorHelper.write(out,s.error_msg ()); break; } case 5: { org.omg.CSI.MessageInContextHelper.write(out,s.in_context_msg ()); break; } } } }
org.omg.CSI.CompleteEstablishContext _complete_msg = null; _complete_msg = org.omg.CSI.CompleteEstablishContextHelper.read (istream); value.complete_msg (_complete_msg); break; case org.omg.CSI.MTContextError.value:
org.omg.CSI.CompleteEstablishContext _complete_msg = null; _complete_msg = org.omg.CSI.CompleteEstablishContextHelper.read (istream); value.complete_msg (_complete_msg); break; case org.omg.CSI.MTContextError.value: