MQConnectionSecurityParameters

 

public class MQConnectionSecurityParameters
extends Object

java.lang.Object
   |
   +----com.ibm.mq.MQConnectionSecurityParameters
          

This class is a representation of the MQCSP structure. It is used to enable the Object Authority Manager (OAM) to authenticate a user and change appropriate identity context fields.

In the WebSphere MQ Java™ client, this field can be set only from within a Security channel exit. When the exit is invoked, the reference to this class in MQChannel Exit will be null. The exit can replace this with an MQConnectionSecurityParameters object defined by the exit. For example:

  public byte[] securityExit(MQChannelExit channelExitParms,
           MQChannelDefinition channelDefinition,
           byte[] agentBuffer)
{
      // ... other code ...
      MQConnectionSecurityParameters csp = new MQConnectionSecurityParameters();
     csp.setCSPUserId("myID");
     csp.setCSPPassword("myPassword");
     csp.setAuthenticationType(MQC.MQCSP_AUTH_USER_ID_AND_PWD);
      channelExitParms.setMQCSP(csp);
}  

If the reference is not null when the exit completes, then the information in the MQConnectionSecurityParameters object created by the Exit will be sent to the queue manager.

Data must be in the character set and encoding of the local queue manager; these are given by the CodedCharSetId queue-manager attribute and MQENC_NATIVE, respectively.


uj12040_