C# Class Open.Core.Common.DomainCredential

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnDisposed ( ) : void

Private Methods

Méthode Description
FireIsPopulatedChanged ( ) : void
OnCredentialValueChanged ( ) : void
SyncNetworkCredential ( ) : void
ToDomainAndUser ( string value, string &domain, string &userName ) : void

Method Details

Clear() public méthode

Clears all credential values.
public Clear ( ) : void
Résultat void

Clone() public méthode

Creates a copy of the credentials.
public Clone ( ) : IDomainCredential
Résultat IDomainCredential

Copy() public méthode

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

DomainCredential() public méthode

Constructor.
public DomainCredential ( ) : System
Résultat System

OnDisposed() protected méthode

protected OnDisposed ( ) : void
Résultat void

Parse() public static méthode

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.
Résultat DomainCredential

Parse() public static méthode

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.
Résultat DomainCredential

Set() public méthode

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.
Résultat void

Set() public méthode

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.
Résultat void