Class TerminologyUserCredentials
Inheritance
System.Object
TerminologyUserCredentials
Implements
System.IEquatable<TerminologyUserCredentials>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.Terminology.TerminologyProvider.Core
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public sealed class TerminologyUserCredentials : IEquatable<TerminologyUserCredentials>
Constructors
TerminologyUserCredentials(String, TerminologyUserCredentials.SsoData, TerminologyUserManagerTokenType)
Initializes a new instance of the TerminologyUserCredentials class.
Declaration
public TerminologyUserCredentials(string userName, TerminologyUserCredentials.SsoData ssoCredentials, TerminologyUserManagerTokenType userType)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | |
TerminologyUserCredentials.SsoData | ssoCredentials | |
TerminologyUserManagerTokenType | userType |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
TerminologyUserCredentials(String, String, TerminologyUserManagerTokenType)
Initializes a new instance of the TerminologyUserCredentials class.
Declaration
public TerminologyUserCredentials(string userName, string password, TerminologyUserManagerTokenType userType)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | |
System.String | password | |
TerminologyUserManagerTokenType | userType |
Properties
Password
the password
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SsoCredentials
the user name
Declaration
public TerminologyUserCredentials.SsoData SsoCredentials { get; set; }
Property Value
Type | Description |
---|---|
TerminologyUserCredentials.SsoData |
UserName
the user name
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserType
the user type
Declaration
public TerminologyUserManagerTokenType UserType { get; set; }
Property Value
Type | Description |
---|---|
TerminologyUserManagerTokenType |
Methods
Create(String)
Creates a new instance of the TerminologyUserCredentials class from a string representation of a user' credentials.
Declaration
public static TerminologyUserCredentials Create(string credentialString)
Parameters
Type | Name | Description |
---|---|---|
System.String | credentialString | The string representation of a user's credentials. |
Returns
Type | Description |
---|---|
TerminologyUserCredentials |
Remarks
the user credentials string format is as follows:
user=[USERNAME];pass=[PASSWORD];type=[TYPE]
If specifying windows or anonymous authentication, the user and pass parameters are not required.
The type part is a string representation of the TerminologyUserManagerTokenType.
Equals(TerminologyUserCredentials)
Value type equality
Declaration
public bool Equals(TerminologyUserCredentials other)
Parameters
Type | Name | Description |
---|---|---|
TerminologyUserCredentials | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(TerminologyUserCredentials, TerminologyUserCredentials)
value-type equality
Declaration
public static bool Equals(TerminologyUserCredentials left, TerminologyUserCredentials right)
Parameters
Type | Name | Description |
---|---|---|
TerminologyUserCredentials | left | |
TerminologyUserCredentials | right |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
value-type equality
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Unique identifier of an in-memory object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>