Class TerminologyProviderCredential
Represents a credential for a terminology provider that can be stored in a ITerminologyProviderCredentialStore.
Inheritance
Implements
Inherited Members
Namespace: Sdl.Terminology.TerminologyProvider.Core
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public sealed class TerminologyProviderCredential : IEquatable<TerminologyProviderCredential>
Constructors
TerminologyProviderCredential(TerminologyUserCredentials, Boolean)
Constructor that takes the given credential and whether to persist.
Declaration
public TerminologyProviderCredential(TerminologyUserCredentials credential, bool persist = false)
Parameters
Type | Name | Description |
---|---|---|
TerminologyUserCredentials | credential | userCredentials |
Boolean | persist | persist |
TerminologyProviderCredential(String, Boolean)
Constructor that takes the given credential and whether to persist. Can be used when authentication is done using an api key
Declaration
public TerminologyProviderCredential(string credential, bool persist = false)
Parameters
Type | Name | Description |
---|---|---|
String | credential | userCredentials |
Boolean | persist | persist |
TerminologyProviderCredential(String, String, Boolean)
Constructor that takes the given credential and whether to persist.
Declaration
public TerminologyProviderCredential(string userName, string password, bool persist = false)
Parameters
Type | Name | Description |
---|---|---|
String | userName | username |
String | password | password |
Boolean | persist | persist |
Properties
Credential
Credential property represents the credential.
Declaration
public TerminologyUserCredentials Credential { get; set; }
Property Value
Type | Description |
---|---|
TerminologyUserCredentials |
CredentialString
Credential property represents the credential.
Declaration
public string CredentialString { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Equals(TerminologyProviderCredential)
Determines whether two terminology provider credentials objects are equal
Declaration
public bool Equals(TerminologyProviderCredential other)
Parameters
Type | Name | Description |
---|---|---|
TerminologyProviderCredential | other | The terminology provider credentials object to compare the current object with. |
Returns
Type | Description |
---|---|
Boolean | True if the two objects are equal. |
GetHashCode(TerminologyProviderCredential)
Generates an hash code for the specified terminology provider credential object
Declaration
public int GetHashCode(TerminologyProviderCredential obj)
Parameters
Type | Name | Description |
---|---|---|
TerminologyProviderCredential | obj | The terminology provider userCredentials object. |
Returns
Type | Description |
---|---|
Int32 | The generated hash code. |