PolicyServerClientSetCredential Method |
Sets the credential used to contact the certificate enrollment policy (CEP) server
Namespace:
PKI.Enrollment.Policy
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public void SetCredential(
string userName,
SecureString password
)
Public Sub SetCredential (
userName As String,
password As SecureString
)
public:
void SetCredential(
String^ userName,
SecureString^ password
)
member SetCredential :
userName : string *
password : SecureString -> unit
Parameters
- 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 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.
See Also