new ContextError(0, /* context id */ 1, /* major status: invalid evidence */ 1, /* minor status (always 1) */
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); }
public static org.omg.CSI.ContextError read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSI.ContextError value = new org.omg.CSI.ContextError (); value.client_context_id = istream.read_ulonglong (); value.major_status = istream.read_long (); value.minor_status = istream.read_long (); value.error_token = org.omg.CSI.GSSTokenHelper.read (istream); return value; }
public static org.omg.CSI.ContextError read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSI.ContextError result = new org.omg.CSI.ContextError(); result.client_context_id=in.read_ulonglong(); result.major_status=in.read_long(); result.minor_status=in.read_long(); result.error_token = org.omg.CSI.GSSTokenHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSI.ContextError s)
public static org.omg.CSI.ContextError read (final org.omg.CORBA.portable.InputStream in) { org.omg.CSI.ContextError result = new org.omg.CSI.ContextError(); result.client_context_id=in.read_ulonglong(); result.major_status=in.read_long(); result.minor_status=in.read_long(); result.error_token = org.omg.CSI.GSSTokenHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CSI.ContextError s)
public static org.omg.CSI.ContextError read (org.omg.CORBA.portable.InputStream istream) { org.omg.CSI.ContextError value = new org.omg.CSI.ContextError (); value.client_context_id = istream.read_ulonglong (); value.major_status = istream.read_long (); value.minor_status = istream.read_long (); value.error_token = org.omg.CSI.GSSTokenHelper.read (istream); return value; }
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; }
new ContextError(0, /* context id */ 1, /* major status: invalid evidence */ 1, /* minor status (always 1) */
new ContextError(0, /* context id */ 1, /* major status: invalid evidence */ 1, /* minor status (always 1) */