ImqAuthenticationRecord

Figure 3. ImqAuthenticationRecord class

A Booch class diagram showing the ImqAuthenticationRecord class and its parent class, ImqError.

This class encapsulates an authentication information record (MQAIR) for use during execution of the ImqQueueManager::connect method, for custom SSL client connections. See the description of that method for more details. This class is available on WebSphere MQ V5.3 and later, but not on the z/OS platform.

Other relevant classes

ImqBoolean (see Elementary data types)

ImqError (see ImqError)

ImqQueueManager (see ImqQueueManager)

ImqString (see ImqString)

Object attributes

connection name
The name of the connection to the CRL server. For example, the IP address of a host computer.

connection reference
A reference to an ImqQueueManager object that provides the required connection to a (local) queue manager. The initial value is zero. Do not confuse this with the ImqQueue queue manager name that identifies a queue manager (possibly remote) for a named queue.

next authentication record
Next object of this class, in no particular order, having the same connection reference as this object. The initial value is zero.

password
A password supplied for connection authentication to the CRL server.

previous authentication record
Previous object of this class, in no particular order, having the same connection reference as this object. The initial value is zero.

type
Specifies the type of authentication information contained in the record.

user name
A user identifier supplied for authorization to the CRL server.

Constructors

ImqAuthenticationRecord( );
The default constructor.

Object methods (public)

void operator = ( const ImqAuthenticationRecord & air);
Instance data is copied from air, replacing the existing instance data.

const ImqString & connectionName ( ) const ;
Returns the connection name.

void setConnectionName ( const ImqString & name );
Sets the connection name.

void setConnectionName ( const char * name = 0 );
Sets the connection name.

ImqQueueManager * connectionReference ( ) const ;
Returns the connection reference.

void setConnectionReference ( ImqQueueManager & manager );
Sets the connection reference.

void setConnectionReference ( ImqQueueManager * manager = 0 );
Sets the connection reference.

void copyOut ( MQAIR * pAir );
Instance data is copied to pAir, replacing the existing instance data. This might involve allocating dependent storage.

void clear ( MQAIR * pAir );
Clear the structure and release dependent storage referenced by pAir.

ImqAuthenticationRecord * nextAuthenticationRecord ( ) const ;
Returns the next authentication record.

const ImqString & password ( ) const ;
Returns the password.

void setPassword ( const ImqString & password );
Sets the password.

void setPassword ( const char * password = 0 );
Sets the password.

ImqAuthenticationRecord * previousAuthenticationRecord ( ) const ;
Returns the previous authentication record.

MQLONG type ( ) const ;
Returns the type.

void setType ( const MQLONG type );
Sets the type.

const ImqString & userName ( ) const ;
Returns the user name.

void setUserName ( const ImqString & name );
Sets the user name.

void setUserName ( const char * name = 0 );
Sets the user name.

Object methods (protected)

void setNextAuthenticationRecord ( ImqAuthenticationRecord * pAir = 0 );
Sets the next authentication record.

Attention: Use this function only if you are sure it will not break the authentication record list.

void setPreviousAuthenticationRecord ( ImqAuthenticationRecord * pAir = 0 );
Sets the previous authentication record.

Attention: Use this function only if you are sure it will not break the authentication record list.



© IBM Corporation 2001. All Rights Reserved