Click or drag to resize
ProjectCredentialsAddCredential Method (Uri, String)
Adds a credential for the server or resource represented by the given URI.

Namespace: Sdl.ProjectAutomation.FileBased
Assembly: Sdl.ProjectAutomation.FileBased (in Sdl.ProjectAutomation.FileBased.dll) Version: 3.0.0.0 (3.1.5799.0)
Syntax
public void AddCredential(
	Uri uri,
	string credential
)

Parameters

uri
Type: SystemUri
The URI that represents the server or resource that requires credentials.
credential
Type: SystemString
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:

File-based translation memory: For a password-protected file-based translation memory, the URI should be of the form "sdltm.file://ABSOLUTE_TM_PATH" and the credential should be the password with which the TM should be unlocked.Server-based translation memory: For a server-based translation memory, an entry should be added for the TM Server itself. The URI should be of the form "sdltm.http[s]://HOSTNAME:PORT". The credentials should be of the form "user=[USERNAME];password=[PASSWORD];type=[TYPE]", where "user" is the user name, "password" the password and "type" on of the following: Windows: use the currently logged on Windows user; "user" and "password" do not have to be specified.CustomWindows: a non-Windows user defined on the TM Server; "user" should be a domain-qualified Windows user name and "password" should be the matching password.CustomUser: a non-Windows user defined on the TM Server. "user" should be the user name and "password" the matching password.GroupShare Project Server: For a server-based project, an entry should be added for the project server itself. The URI should be of the form "ps.http[s]://HOSTNAME:PORT". The credentials follow the same rules as for server-based translation memory credentials as described above.Termbases: For a server-based termbase, an entry should be added for the MultiTerm server itself. The URI should be of the form "termbase.http[s]://HOSTNAME:PORT". The credentials follow the same rules as for server-based translation memory credentials as described above.SDL ETS automated translation provider: The URI should be of the form 'sdlets.http://[USERNAME:@]HOST:PORT?dictionary=DICTIONARY&project=PROJECT'. The credential is the password.LanguageWeaver automated translation provider: The URI should be of the form "languageweavermt.http[s]://[USERKEY:@]HOST:PORT?apimodel=[SOAP|REST]". The credential should be the LanguageWeaver API key.Google automated translation provider: URI= "googlemt://", no credentials required.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments