UserPasswordCredential class | QSYS API Reference Guide

Estimated reading time: 3 minutes

The user name and password information of UserPasswordCredential may be used to establish authenticated connections to databases that require such information.

User and Password properties may be set or initialized to null values, in which case the return values are empty values. These properties never return null values.

Namespace: ASNA.DataGate.Providers Assembly: ASNA.QSys.DataGate.Client.dll

Inheritance: Object –> DataGateCredential

Constructors

Name Description
UserPasswordCredential(String, String, PasswordType) Construct a UserPasswordCredential instance from component parts.
UserPasswordCredential() Construct a UserPasswordCredential with default values.

UserPasswordCredential(String, String, PasswordType)

Construct a UserPasswordCredential instance from component parts.

UserPasswordCredential(String, String, PasswordType)

Parameters

Type Parameter name Description
String user Traditional user name for logon.
String password Traditional character passphrase for logon, or .
PasswordType passwordType For old servers with limited password length requirements, set this to . In most cases use the default value.

UserPasswordCredential()

Construct a UserPasswordCredential with default values.

UserPasswordCredential()

Properties

Type Name Description
String Password Password information as a clear-text value.
PasswordType PasswordType Password handling information.
UserPasswordCredential StarDomain Gets the special UserPasswordCredential instance representing a domain user.
String User Gets or sets a user name associated with the logon credential.

Methods

Signature Description
Clone() Creates a new object that is a copy of the current instance.
Equals(IDataGateCredential) Determines whether the current instance of is equal to the specified instance.
GetHashCodeInternal() Serves as the default hash function for the current instance.

object Clone()

Creates a new object that is a copy of the current instance.

Remarks

This method is used to create a copy of the current instance of the UserPasswordCredential class. The copy is made by creating a new instance of the UserPasswordCredential class with the same user, password, and password type as the current instance.

object Clone()

bool Equals(IDataGateCredential other)

Determines whether the current instance of is equal to the specified instance.

Remarks

This method is used to compare the current instance with another instance of the UserPasswordCredential class. The comparison is based on the user, password type, and password of the instances.

bool Equals(IDataGateCredential other)

Parameters

Type Parameter name Description
IDataGateCredential other The instance to compare with the current instance.

Returns

Type Description
Boolean True if the current instance is equal to the specified instance; otherwise, false.

int GetHashCodeInternal()

Serves as the default hash function for the current instance.

Remarks

This method is used to generate a hash code for the current instance of the UserPasswordCredential class. It takes into account the user, password type, and password of the instance to generate a unique hash code.

int GetHashCodeInternal()