Class MFECIConnectionSpec

An implementation class used by an application component to pass connection-specific information and properties to the getConnection method in CicsConnectionFactory class.
java.lang.Object

extended by com.microfocus.cics.connector.cci.MFECIConnectionSpec

All Implemented Interfaces

Serializable, javax.resource.cci.ConnectionSpec

Class Specifications

public class MFECIConnectionSpec

extends Object

implements javax.resource.cci.ConnectionSpec, Serializable

See Also:

Serialized Form

Field Summary

static int NO_AUTHINFO
static int USE_USERPWD

Constructor Summary

MFECIConnectionSpec()
Create a CicsConnectionSpec instance.
MFECIConnectionSpec(boolean statefulSession)
MFECIConnectionSpec(boolean statefulSession, boolean transactional, String sessionID)
MFECIConnectionSpec(String sessionID)
MFECIConnectionSpec(String user, String password, String realm)
Create a CicsConnectionSpec instance.

Methods

Method Summary
int getAuthenticationMechanism()

Get authentication mechanism.

String getPassword()

Get password.

String getRealm()

Get realm.

String getSessionId()
boolean getStatefulSession()

Get the stateful session.

String getUser()

Get username.

boolean isTransactional()
void setAuthenticationMechanism(int authenticationMechanism)

Set authentication mechanism.

void setPassword(String password)

Set password

void setRealm(String realm)

Set realm.

void setSessionId(String sessionId)
void setStatefulSession(boolean aSession)

Set stateful session.

void setTransactional(boolean transactional)
void setUser(String user)

Set user name.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

USE_USERPWD
public static final int USE_USERPWD

See Also:

Constant Field Values

NO_AUTHINFO
public static final int NO_AUTHINFO

See Also:

Constant Field Values

Constructor Detail

MFECIConnectionSpec
public MFECIConnectionSpec()

Create a MFECIConnectionSpec instance.

MFECIConnectionSpec
public MFECIConnectionSpec(boolean statefulSession)
MFECIConnectionSpec
public MFECIConnectionSpec(boolean statefulSession,
                           boolean transactional,
                           String sessionID)
MFECIConnectionSpec
public MFECIConnectionSpec(boolean statefulSession,
                           String sessionID)
MFECIConnectionSpec
public(String user,
       String password,
       String realm)

Create a MFECIConnectionSpec instance.

Parameters:
user User name
password Password
realm Realm

Method Detail

getAuthenticationMechanism
public int getAuthenticationMechanism()

Get authentication mechanism. Can be one of USE_USERPWD or NO_AUTHINFO.

Returns:
The authentication mechanism.
getPassword
public String getPassword()

Get the password required for the specified user name.

Returns:
The password.
getRealm
public String getRealm()

Get the realm.

Returns:
The realm.
getSessionId
public String getSessionId()
getStatefulSession
public boolean getStatefulSession()

Get the stateful session.

getUser
public String getUser()

Get the user name.

Returns:
The user name.
isTransactional
public boolean isTransactional()
setAuthenticationMechanism
public int setAuthenticationMechanism(int authenticationMechanism)

Set the authentication mechanism.

Parameters:
authenticationMechanism The authentication mechanism to be set. One of USE_USERPWD or NO_AUTHINFO.
setPassword
public void setPassword (String password)

Set the password.

Parameters:
password The password being set.
setRealm
public void setRealm (String realm)

Set the realm.

Parameters:
realm The realm to be set.
setSessionId
public void setSessionId (String sessionId)
setStatefulSession
public void setStatefulSession(boolean aSession)

Set stateful session.

Parameters:
statefulsession The session type.
setUser
public void setUser (String user)

Set the user name.

Parameters:
user The user name to be set.