Context authority on UNIX, Linux, and Windows

Context is information that applies to a particular message and is contained in the message descriptor, MQMD, which is part of the message. Applications can specify the context data when either an MQOPEN or MQPUT call is made.

The context information comes in two sections:

    Identity section
    Who the message came from. It consists of the UserIdentifier, AccountingToken, and ApplIdentityData fields.

    Origin section
    Where the message came from, and when it was put onto the queue. It consists of the PutApplType, PutApplName, PutDate, PutTime, and ApplOriginData fields.

Applications can specify the context data when either an MQOPEN or MQPUT call is made. This data might be generated by the application, passed on from another message, or generated by the queue manager by default. For example, context data can be used by server programs to check the identity of the requester, testing whether the message came from an application running under an authorized user ID.

A server program can use the UserIdentifier to determine the user ID of an alternative user. You use context authorization to control whether the user can specify any of the context options on any MQOPEN or MQPUT1 call.

See Control context information for information about the context options, and Overview for MQMD for descriptions of the message descriptor fields relating to context.

Parent topic: Authority to work with IBM MQ objects on UNIX, Linux, and Windows