PSIdentity(String, Boolean, String, PSCertificateDetails) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructor used to construct a PSIdentity object.
public:
PSIdentity(System::String ^ authType, bool isAuthenticated, System::String ^ userName, System::Management::Automation::Remoting::PSCertificateDetails ^ cert);
public PSIdentity (string authType, bool isAuthenticated, string userName, System.Management.Automation.Remoting.PSCertificateDetails cert);
new System.Management.Automation.Remoting.PSIdentity : string * bool * string * System.Management.Automation.Remoting.PSCertificateDetails -> System.Management.Automation.Remoting.PSIdentity
Public Sub New (authType As String, isAuthenticated As Boolean, userName As String, cert As PSCertificateDetails)
Parameters
- authType
- String
Type of authentication used to authenticate this user. For a WSMan service authenticated user this will be one of the following: WSMAN_DEFAULT_AUTHENTICATION WSMAN_NO_AUTHENTICATION WSMAN_AUTH_DIGEST WSMAN_AUTH_NEGOTIATE WSMAN_AUTH_BASIC WSMAN_AUTH_KERBEROS WSMAN_AUTH_CLIENT_CERTIFICATE WSMAN_AUTH_LIVEID
- isAuthenticated
- Boolean
true if this user is authenticated.
- userName
- String
Name of the user
- cert
- PSCertificateDetails
Certificate details if Certificate authentication is used.