SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
encapsulatedErrorToken); msgBodyCtxError = new SASContextBody(); msgBodyCtxError.error_msg(ctxError);
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
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); }
void returnContextError(ServerRequestInfo ri, int major, int minor) { // Create CompleteEstablishContext SASContextBody sasBody = new SASContextBody(); ContextError errorMsg = new ContextError(); errorMsg.client_context_id = 0; errorMsg.major_status = major; errorMsg.minor_status = minor; errorMsg.error_token = EMPTY_BARR; sasBody.error_msg(errorMsg); log.fine("Adding SASContextBody, discriminator = " + sasBody.discriminator()); ri.add_reply_service_context(encodeSASContextBody(sasBody), true); }
protected Any makeMessageInContext(org.omg.CORBA.ORB orb, long client_context_id, boolean discard_context) { MessageInContext msg = new MessageInContext(); msg.client_context_id = client_context_id; msg.discard_context = discard_context; SASContextBody contextBody = new SASContextBody(); contextBody.in_context_msg(msg); Any any = orb.create_any(); SASContextBodyHelper.insert( any, contextBody ); return any; }
protected Any makeEstablishContext(org.omg.CORBA.ORB orb, long client_context_id, AuthorizationElement[] authorization_token, IdentityToken identity_token, byte[] client_authentication_token) { EstablishContext msg = new EstablishContext(); msg.client_context_id = client_context_id; msg.client_authentication_token = client_authentication_token; msg.identity_token = identity_token; msg.authorization_token = authorization_token; SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(msg); Any any = orb.create_any(); SASContextBodyHelper.insert( any, contextBody ); return any; }
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
protected Any makeContextError(ServerRequestInfo ri, long client_context_id, int major_status, int minor_status, byte[] error_token) { ContextError msg = new ContextError(); msg.client_context_id = client_context_id; msg.error_token = error_token; msg.major_status = major_status; msg.minor_status = minor_status; SASContextBody contextBody = new SASContextBody(); contextBody.error_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; }
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; }
encapsulatedErrorToken); msgBodyCtxError = new SASContextBody(); msgBodyCtxError.error_msg(ctxError);
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
SASContextBody contextBody = new SASContextBody(); contextBody.establish_msg(message);
encapsulatedErrorToken); msgBodyCtxError = new SASContextBody(); msgBodyCtxError.error_msg(ctxError);
public static SASContextBody read (org.omg.CORBA.portable.InputStream in) SASContextBody result = new SASContextBody(); short disc=in.read_short(); switch (disc)
public static SASContextBody read (org.omg.CORBA.portable.InputStream in) SASContextBody result = new SASContextBody(); short disc=in.read_short(); switch (disc)
public static org.omg.CSI.SASContextBody read (org.omg.CORBA.portable.InputStream istream) org.omg.CSI.SASContextBody value = new org.omg.CSI.SASContextBody (); short _dis0 = (short)0; _dis0 = istream.read_short ();
public static org.omg.CSI.SASContextBody read (org.omg.CORBA.portable.InputStream istream) org.omg.CSI.SASContextBody value = new org.omg.CSI.SASContextBody (); short _dis0 = (short)0; _dis0 = istream.read_short ();