Package com.ibm.jakarta.connector2.cics
Class CICSConnectionRequestInfo
java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnectionRequestInfo
- All Implemented Interfaces:
jakarta.resource.spi.ConnectionRequestInfo
- Direct Known Subclasses:
ECIConnectionRequestInfo
,EPIConnectionRequestInfo
public class CICSConnectionRequestInfo
extends Object
implements jakarta.resource.spi.ConnectionRequestInfo
Concrete ConnectionRequestInfo Class which supports Userid and Password.
It is Concrete as ECI requires nothing more so saves having to inherit.
EPI may need to extend this
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Objects are equal if they are of the same class and userName and Password are identicalGets the Password for this ConnectionSpecGets the Userid for this ConnectionSpecint
hashCode()
returns a hashcode which is the same for all CRI objects.void
setPassword
(String newPass) Sets the Password for this ConnectionSpecvoid
setUserName
(String newUser) Sets the Userid for this ConnectionSpec
-
Field Details
-
CLASS_VERSION
- See Also:
-
CCRI_HASHCODE
public static final int CCRI_HASHCODE- See Also:
-
-
Constructor Details
-
CICSConnectionRequestInfo
public CICSConnectionRequestInfo()
-
-
Method Details
-
setUserName
Sets the Userid for this ConnectionSpec- Parameters:
newUser
- The new userid
-
getUserName
Gets the Userid for this ConnectionSpec- Returns:
- The Userid
-
setPassword
Sets the Password for this ConnectionSpec- Parameters:
newPass
- The new password
-
getPassword
Gets the Password for this ConnectionSpec- Returns:
- The Userid
-
equals
Objects are equal if they are of the same class and userName and Password are identical -
hashCode
public int hashCode()returns a hashcode which is the same for all CRI objects. This is required to support re-authentication in WAS and since connections to the Gateway are not dependant on userid/password this means any connection will match.
-