MQSecurityExit

 

public interface MQSecurityExit

com.ibm.mq.MQSecurityExit
          

The security exit interface allows you to customize the security flows that occur when an attempt is made to connect to a queue manager.

Note: This interface does not apply when connecting directly to WebSphere MQ in bindings mode.

To provide your own security exit, define a class that implements this interface. Create a new instance of your class and assign it to the MQEnvironment.securityExit field before constructing your MQQueueManager object.

For example,

  // in MySecurityExit.java
  class MySecurityExit implements MQSecurityExit 
  {
      //  provide an implementation of the securityExit method
      public byte[] securityExit(MQChannelExit       channelExitParms,
                                 MQChannelDefinition channelDefinition,
                                 byte[]              agentBuffer)
      {
          // your exit code goes here...
      }
  }

  // in your main program...
  MQEnvironment.securityExit = new MySecurityExit();
  ...    // other initialisation
  MQQueueManager qMgr        = new MQQueueManager("");
 


uj21340_