C# Class Open.Core.Common.DomainCredential

Represents a user's credentials.
Inheritance: ModelBase, IDomainCredential
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears all credential values.

Clone ( ) : IDomainCredential

Creates a copy of the credentials.

Copy ( IDomainCredential value ) : void

Copies the given credentials to this instance.

DomainCredential ( ) : System

Constructor.

Parse ( string domainUser ) : DomainCredential

Parses the given DOMAIN\User into a domain-credential (with no password associated).

Parse ( string domainUser, string password ) : DomainCredential

Parses the given values into a domain-credential (seperating a single string into DOMAIN\User).

Set ( string userName, string password ) : void

Sets the credentials properties with the given values.

Set ( string userName, string password, string domain ) : void

Sets the credentials properties with the given values.

Protected Methods

Method Description
OnDisposed ( ) : void

Private Methods

Method Description
FireIsPopulatedChanged ( ) : void
OnCredentialValueChanged ( ) : void
SyncNetworkCredential ( ) : void
ToDomainAndUser ( string value, string &domain, string &userName ) : void

Method Details

Clear() public method

Clears all credential values.
public Clear ( ) : void
return void

Clone() public method

Creates a copy of the credentials.
public Clone ( ) : IDomainCredential
return IDomainCredential

Copy() public method

Copies the given credentials to this instance.
public Copy ( IDomainCredential value ) : void
value IDomainCredential The value to copy.
return void

DomainCredential() public method

Constructor.
public DomainCredential ( ) : System
return System

OnDisposed() protected method

protected OnDisposed ( ) : void
return void

Parse() public static method

Parses the given DOMAIN\User into a domain-credential (with no password associated).
public static Parse ( string domainUser ) : DomainCredential
domainUser string The DOMAIN\User value.
return DomainCredential

Parse() public static method

Parses the given values into a domain-credential (seperating a single string into DOMAIN\User).
public static Parse ( string domainUser, string password ) : DomainCredential
domainUser string The DOMAIN\User value.
password string The password.
return DomainCredential

Set() public method

Sets the credentials properties with the given values.
public Set ( string userName, string password ) : void
userName string The user name associated with the credentials.
password string The password.
return void

Set() public method

Sets the credentials properties with the given values.
public Set ( string userName, string password, string domain ) : void
userName string The user name associated with the credentials.
password string The password.
domain string The domain or computer name that verifies the credentials.
return void