Class TerminologyProviderCredentialStore
This class represents a storage mechanism for terminology provider credentials.
Inherited Members
Namespace: SdlSdl.TerminologySdl.Terminology.TerminologyProviderCore
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public class TerminologyProviderCredentialStore : ITerminologyProviderCredentialStore, IXmlSerializable
Constructors
TerminologyProviderCredentialStore()
Declaration
public TerminologyProviderCredentialStore()
Methods
AddCredential(Uri, TerminologyProviderCredential)
Add a credential for the specified provider Uri
Declaration
public void AddCredential(Uri uri, TerminologyProviderCredential credential)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The provider Uri |
TerminologyProviderCredential | credential | the credential to add |
AddOrUpdateCredential(Uri, TerminologyProviderCredential)
Add a credential for the specified provider Uri if it does not exists, otherwise update the existing credential
Declaration
public 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()
Clear the store, removing all the credentials
Declaration
public void Clear()
GetCredential(Uri)
Get the provider credential associated with the specified provider Uri
Declaration
public TerminologyProviderCredential GetCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The provider Uri to get the credential for |
Returns
Type | Description |
---|---|
TerminologyProviderCredential | The credential if found, otherwise null. |
GetSchema()
Gets the xml schema.
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
XmlSchema | xml schema |
ReadXml(XmlReader)
Reads the xml from the given reader.
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader | reader |
RemoveCredential(Uri)
Remove the provider credential from the store
Declaration
public void RemoveCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The provider Uri |
WriteXml(XmlWriter)
Writes the xml to the given writer.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | writer |
Events
CredentialsChanged
CredentialsChanged event is fired whenever the credentials are added to or removed from the store.
Declaration
public event EventHandler CredentialsChanged
Event Type
Type | Description |
---|---|
EventHandler |