The com.ibm.mq.ipt.exit.SecurityExitResponse class
This class is used to pass a response back to MQIPT from a user-defined security exit and is used to determine if the connection request should be accepted or rejected. Objects of this type are only created in the validate method (see The com.ibm.mq.ipt.exit.SecurityExit class). There are convenience constructors for creating these objects and there are methods for each property. See the sample security exits for more information.
Create a default SecurityExitResponse object rejects the connection request.
Constructors
- public SecurityExitResponse (String dest, int destPort, int rc, String msg)
where:
- dest is the new target destination
- destPort is the new destination port address
- rc is the reason code
- msg is a message that will be added to the connection log entry
- public SecurityExitResponse (String dest, int destPort, int rc)
- public SecurityExitResponse (int rc, String msg)
- public SecurityExitResponse (int rc)
Methods
- public void setDestination(String dest)
- sets a new destination address for the connection request
- public void setDestinationPort(int port) throws IPTException
- sets a new destination listener port address for the connection request - throw an IPTException for an invalid port address
- public void setMessage(String msg)
- adds a message to the connection log record
- public void setReasonCode(int rc)
- sets the reason code for the connection request.
Parent topic: Security exits