Interface ITerminologyProviderCredentialStore
This interface represents a storage mechanism for terminology provider credentials.
Namespace: SdlSdl.TerminologySdl.Terminology.TerminologyProviderCore
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public interface ITerminologyProviderCredentialStore
Methods
AddCredential(Uri, TerminologyProviderCredential)
Adds or updates the credential for the specified URI.
Declaration
void AddCredential(Uri uri, TerminologyProviderCredential credential)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI for which to add or update the credential. Note that this does not necessarily have to be the terminology provider URI itself. It can be a more general URI, for instance identifying the server on which the terminology provider lives. This allows for reusing credentials for different terminology providers hosted on the same server. |
TerminologyProviderCredential | credential | A serialized credential. |
AddOrUpdateCredential(Uri, TerminologyProviderCredential)
Add a credential for the specified provider Uri. If it does not exists, otherwise update the existing credential
Declaration
void AddOrUpdateCredential(Uri uri, TerminologyProviderCredential credential)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The provider Uri |
TerminologyProviderCredential | credential | the credential to add or update an existing one |
Clear()
Removes all credentials stored in this store.
Declaration
void Clear()
GetCredential(Uri)
Gets a credential for the given URI.
Declaration
TerminologyProviderCredential GetCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI for which to retrieve the credential. Note that this does not necessarily have to be the terminology provider URI itself. It can be a more general URI, for instance identifying the server on which the terminology provider lives. This allows for reusing credentials for different terminology providers hosted on the same server. |
Returns
Type | Description |
---|---|
TerminologyProviderCredential | A serialized credential; or null if no credential for the given URI is available. |
RemoveCredential(Uri)
Removes the credential for the specified URI.
Declaration
void RemoveCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI for which to remove the credential. Note that this does not necessarily have to be the terminology provider URI itself. It can be a more general URI, for instance identifying the server on which the terminology provider lives. This allows for reusing credentials for different terminology providers hosted on the same server. |