PolicyServerClientSetCredential Method

Sets the credential used to contact the certificate enrollment policy (CEP) server

Definition

Namespace: PKI.Enrollment.Policy
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public void SetCredential(
	string userName,
	SecureString password
)

Parameters

userName  String
Specifies the user name to authenticate in enrollment policy server.

If the authentication type is set to ClientCertificate, this parameter must contains authentication certificate's thumbprint.

This parameter must be omitted when Kerberos authentication is used.

password  SecureString
Specifies the password to authenticate in enrollment policy server.

This parameter must be used only when UserNameAndPassword authentication method is used. This parameter must be omitted in all other authentication methods.

Remarks

Currently this method do not set or update credentials in the credential vault, only default class constructor combining with Register method provides this functionality.

Exceptions

ArgumentNullExceptionuserName parameter is null reference.

See Also