public class MQCSP
extends com.ibm.mq.jmqi.internal.AbstractMqiStructure
implements java.lang.Cloneable
struct tagMQCSP {
MQCHAR4 StrucId;
MQLONG Version;
MQLONG AuthenticationType;
MQBYTE4 Reserved1;
MQPTR CSPUserIdPtr;
MQLONG CSPUserIdOffset;
MQLONG CSPUserIdLength;
MQBYTE8 Reserved2;
MQPTR CSPPasswordPtr;
MQLONG CSPPasswordOffset;
MQLONG CSPPasswordLength;
};
| Constructor and Description |
|---|
MQCSP(com.ibm.mq.jmqi.JmqiEnvironment env)
Make a new MQCSP object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldsToFormatter(com.ibm.mq.jmqi.internal.JmqiStructureFormatter fmt)
Template method to populate a structure formatter with field definitions.
|
java.lang.Object |
clone()
Clone this MQCSP.
|
boolean |
equals(java.lang.Object object)
Compare two MQCSP structures
|
int |
getAuthenticationType() |
java.lang.String |
getCspPassword() |
java.lang.String |
getCspUserId() |
int |
getCurrentVersion() |
int |
getRequiredBufferSize(int ptrSize,
com.ibm.mq.jmqi.system.JmqiCodepage cp) |
int |
getSize(int ptrSize)
The byte size of the structure
|
static int |
getSize(com.ibm.mq.jmqi.JmqiEnvironment env,
int version,
int ptrSize)
The byte size of the fixed part of the structure
|
static int |
getSizeV1(int ptrSize) |
int |
getVersion() |
int |
hashCode()
Generate a hashcode.
|
int |
readFromBuffer(byte[] buffer,
int offset,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls) |
void |
setAuthenticationType(int authenticationType) |
void |
setCspPassword(java.lang.String cspPassword) |
void |
setCspUserId(java.lang.String cspUserId) |
void |
setVersion(int version) |
int |
writeToBuffer(byte[] buffer,
int offset,
boolean obscure,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls) |
int |
writeToBuffer(byte[] buffer,
int offset,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls) |
int |
writeToTraceBuffer(byte[] buffer,
int pos,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls) |
public MQCSP(com.ibm.mq.jmqi.JmqiEnvironment env)
env - public int getCurrentVersion()
getCurrentVersion in interface com.ibm.mq.jmqi.internal.MqiStructuregetCurrentVersion in class com.ibm.mq.jmqi.internal.AbstractMqiStructurepublic static int getSizeV1(int ptrSize)
ptrSize - public int getSize(int ptrSize)
throws JmqiException
getSize in interface com.ibm.mq.jmqi.internal.MqiStructuregetSize in class com.ibm.mq.jmqi.internal.AbstractMqiStructureptrSize - JmqiExceptionpublic static int getSize(com.ibm.mq.jmqi.JmqiEnvironment env,
int version,
int ptrSize)
throws JmqiException
env - version - ptrSize - JmqiExceptionpublic int getRequiredBufferSize(int ptrSize,
com.ibm.mq.jmqi.system.JmqiCodepage cp)
throws JmqiException
getRequiredBufferSize in interface com.ibm.mq.jmqi.internal.MqiStructureptrSize - cp - JmqiExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - public int getVersion()
getVersion in interface com.ibm.mq.jmqi.internal.MqiStructuregetVersion in class com.ibm.mq.jmqi.internal.AbstractMqiStructurepublic void setVersion(int version)
setVersion in interface com.ibm.mq.jmqi.internal.MqiStructuresetVersion in class com.ibm.mq.jmqi.internal.AbstractMqiStructureversion - public int getAuthenticationType()
public void setAuthenticationType(int authenticationType)
authenticationType - public java.lang.String getCspUserId()
public void setCspUserId(java.lang.String cspUserId)
cspUserId - public java.lang.String getCspPassword()
public void setCspPassword(java.lang.String cspPassword)
cspPassword - public int writeToTraceBuffer(byte[] buffer,
int pos,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls)
throws JmqiException
writeToTraceBuffer in interface com.ibm.mq.jmqi.internal.MqiStructurewriteToTraceBuffer in class com.ibm.mq.jmqi.internal.AbstractMqiStructureJmqiExceptionMqiStructure.writeToTraceBuffer(byte[], int, int, boolean, JmqiCodepage, JmqiTls)public int writeToBuffer(byte[] buffer,
int offset,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls)
throws JmqiException
writeToBuffer in interface com.ibm.mq.jmqi.internal.MqiStructureJmqiExceptionMqiStructure.writeToBuffer(byte[], int, int, boolean, JmqiCodepage, JmqiTls)public int writeToBuffer(byte[] buffer,
int offset,
boolean obscure,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls)
throws JmqiException
buffer - offset - obscure - ptrSize - swap - cp - tls - JmqiExceptionpublic int readFromBuffer(byte[] buffer,
int offset,
int ptrSize,
boolean swap,
com.ibm.mq.jmqi.system.JmqiCodepage cp,
com.ibm.mq.jmqi.system.JmqiTls tls)
throws JmqiException
readFromBuffer in interface com.ibm.mq.jmqi.internal.MqiStructureJmqiExceptionMqiStructure.readFromBuffer(byte[], int, int, boolean, JmqiCodepage, JmqiTls)public void addFieldsToFormatter(com.ibm.mq.jmqi.internal.JmqiStructureFormatter fmt)
addFieldsToFormatter in interface com.ibm.mq.jmqi.internal.MqiStructurefmt - The structure formatter