SubscriptionDefinitionSetCredentials Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Updates the credentials used by the event handler when it executes.

Namespace: ContentStudio.Document.Subscription
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void SetCredentials(
	string username,
	string password
)

Parameters

username
Type: SystemString
The username. This parameter can be null (Nothing in Visual Basic) or empty to indicate that credentials are not used.
password
Type: SystemString
The password. This parameter can be null (Nothing in Visual Basic) if the password is not used. If username is null (Nothing in Visual Basic) or Empty the value of this parameter is ignored.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSInvalidParameterExceptionA parameter has an invalid value
CSDocumentNotFoundExceptionThe document could not be found
CryptographicExceptionFailed to encrypt the password.
ArgumentOutOfRangeExceptionThe size of the username parameter exceeds its maximum length.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Remarks

The password is stored encrypted in the underlying database.
See Also

Reference