Class ProjectCredentials
Represents credentials for translation providers and termbase servers to be used during project processing. You can access this using Credentials.
When creating or opening a project that refers to translation providers or termbases that require credentials, the appropriate credentials should be set up using AddCredential(Uri, string), before executing automatic tasks or anything else that requires access to these translation providers or termbases.
Note that these credentials will only be used for local processing and will not be included in any project packages. The user who opens the project package will be asked to provide the appropriate credentials.
If credentials for translation providers or termbases have been specified in Trados Studio and the user has chose to persist these, these credentials will be automatically available to projects that are run on the same machine and you are not required to provide them programmatically again.
Inherited Members
Namespace: SdlSdl.ProjectAutomationFileBased
Assembly: Sdl.ProjectAutomation.FileBased.dll
Syntax
public class ProjectCredentials
Methods
AddCredential(Uri, bool, string, string)
Declaration
public void AddCredential(Uri uri, bool useWindowsAuthentication, string user, string password)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | |
bool | useWindowsAuthentication | |
string | user | |
string | password |
AddCredential(Uri, string)
Adds a credential for the server or resource represented by the given URI.
Declaration
public void AddCredential(Uri uri, string credential)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI that represents the server or resource that requires credentials. |
string | credential | A credential in the form required by the specified server. |
Remarks
It is recommended to build the URIs using the TranslationProviderUriBuilder class. The following URIs are supported: