Click or drag to resize

PolicyServerClient Constructor

Initializes a new instance of the PolicyServerClient class

Namespace:  PKI.Enrollment.Policy
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public PolicyServerClient(
	string url,
	bool userContext,
	PolicyAuthenticationEnum authentication,
	string userName,
	SecureString password
)

Parameters

url
Type: SystemString
Specifies the certificate enrollment policy server endpoint URL.
userContext
Type: SystemBoolean
Specifies whether the policy is intended for user or computer context.
authentication
Type: PKI.Enrollment.PolicyPolicyAuthenticationEnum
Specifies the authentication type used for the policy server.
userName
Type: SystemString
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
Type: System.SecuritySecureString
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
ExceptionCondition
ArgumentNullExceptionThe url parameter is null.
NotSupportedExceptionThe operating system do not support certificate enrollment policy servers.
See Also