Class CobolConnectionSpec

An implementation class used by an application component to pass connection-specific information and properties to the getConnection method in CobolConnectionFactory class.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
java.lang.Object

extended by com.microfocus.cobol.connector.cci.CobolConnectionSpec

All Implemented Interfaces

ConnectionSpec, Serializable

Class Specifications

public class CobolConnectionSpec

extends Object

implements ConnectionSpec, Serializable

See Also:

Serialized Form

Field Summary

static int UNINITIALIZED
static int USE_USERPWD

Constructor Summary

CobolConnectionSpec()
Create a CobolConnectionSpec instance.
CobolConnectionSpec(boolean statefulSession)
CobolConnectionSpec(String user, String password, String realm)
Create a CobolConnectionSpec instance

Methods

Method Summary
int getAuthenticationMechanism()

Get authentication mechanism.

String getPassword()

Get password.

String getRealm()

Get realm.

boolean getStatefulSession()

Get the stateful session.

String getUser()

Get username.

void setAuthenticationMechanism(int authenticationMechanism)

Set authentication mechanism.

void setPassword(String password)

Set password

void setRealm(String realm)

Set realm.

void setStatefulSession(boolean aSession)

Set stateful session.

void setUser(String user)

Set user name.

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

Field Detail

USE_USERPWD
public static final int USE_USERPWD

See Also:

Constant Field Values

UNINITIALIZED
public static final int UNINITIALIZED

See Also:

Constant Field Values

Constructor Detail

CobolConnectionSpec
public(String user,
       String password,
       String realm)

Create a CobolConnectionSpec instance.

Parameters:
user User name
password Password
realm Realm
CobolConnectionSpec
public CobolConnectionSpec()

Create a CobolConnectionSpec instance.

CobolConnectionSpec
public CobolConnectionSpec(boolean statefulSession)

Method Detail

setStatefulSession
public void setStatefulSession(boolean aSession)

Set stateful session.

getStatefulSession
public boolean getStatefulSession()

Get stateful session.

getUser
public String getUser()

Get the user name.

Returns:
The user name.
getPassword
public String getPassword()

Get the password.

Returns:
The password.
getRealm
public String getRealm()

Get the realm.

Returns:
The realm.
getAuthenticationMechanism
public int getAuthenticationMechanism()

Get authentication mechanism. Can be one of USE_USERPWD UNINITIALIZED.

Returns:
The authentication mechanism.
setUser
public void String setUser()

Set the user name.

Parameters:
user The user name to be set.
setPassword
public void String setPassword()

Set the password.

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

Set the realm.

Parameters:
realm The realm to be set.
setAuthenticationMechanism
public int setAuthenticationMechanism(int authenticationMechanism)

Set the authentication mechanism.

Parameters:
authenticationMechanism The authentication mechanism to be set. One of USE_USERPWD UNINITIALIZED.