Class TerminologyUserCredentials
Inheritance
System.Object
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()
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public sealed class TerminologyUserCredentials : IEquatable<TerminologyUserCredentials>
Constructors
TerminologyUserCredentials(String, String, TerminologyUserManagerTokenType)
Declaration
public TerminologyUserCredentials(string userName, string password, TerminologyUserManagerTokenType userType)
Parameters
TerminologyUserCredentials(String, String, String, DateTime, TerminologyUserManagerTokenType)
Declaration
public TerminologyUserCredentials(string userName, string samlToken, string authToken, DateTime expirationDate, TerminologyUserManagerTokenType userType)
Parameters
| Type |
Name |
Description |
| System.String |
userName |
|
| System.String |
samlToken |
|
| System.String |
authToken |
|
| System.DateTime |
expirationDate |
|
| TerminologyUserManagerTokenType |
userType |
|
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
|
Properties
AuthToken
Bearer token for REST API calls
Declaration
public string AuthToken { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ExpirationDate
Expiration date of bearer token
Declaration
public DateTime ExpirationDate { get; set; }
Property Value
| Type |
Description |
| System.DateTime |
|
HasExpired
Checks expiration date time of the bearer token
Declaration
public bool HasExpired { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Password
Declaration
public string Password { get; set; }
Property Value
| Type |
Description |
| System.String |
|
SamlToken
Declaration
public string SamlToken { get; set; }
Property Value
| Type |
Description |
| System.String |
|
UserName
Declaration
public string UserName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
UserType
Declaration
public TerminologyUserManagerTokenType UserType { get; set; }
Property Value
Methods
Create(String)
Declaration
public static TerminologyUserCredentials Create(string credentialString)
Parameters
| Type |
Name |
Description |
| System.String |
credentialString |
The string representation of a user's credentials.
|
Returns
Equals(TerminologyUserCredentials)
Declaration
public bool Equals(TerminologyUserCredentials other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(TerminologyUserCredentials, TerminologyUserCredentials)
Declaration
public static bool Equals(TerminologyUserCredentials left, TerminologyUserCredentials right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
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>