PolicyServerClient Constructor

Initializes a new instance of the PolicyServerClient class

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 PolicyServerClient(
	string url,
	bool userContext,
	PolicyAuthenticationEnum authentication,
	string userName,
	SecureString password
)

Parameters

url  String
Specifies the certificate enrollment policy server endpoint URL.
userContext  Boolean
Specifies whether the policy is intended for user or computer context.
authentication  PolicyAuthenticationEnum
Specifies the authentication type used for the policy server.
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.

Exceptions

ArgumentNullExceptionThe url parameter is null.
NotSupportedExceptionThe operating system do not support certificate enrollment policy servers.

See Also