PSCredential Class
Definition
Offers a centralized way to manage usernames, passwords, and credentials.
public sealed class PSCredential : System.Runtime.Serialization.ISerializable
- Inheritance
-
PSCredential
- Implements
Constructors
| PSCredential(PSObject) | |
| PSCredential(String, SecureString) |
Initializes a new instance of the PSCredential class with a username and password. |
Properties
| Empty |
Gets an empty PSCredential. This is an PSCredential with both UserName and Password initialized to null. |
| GetSymmetricEncryptionKeyDelegate |
Gets or sets a delegate which returns the encryption key and initialization vector for symmetric encryption algorithm. |
| Password |
User's password. |
| UserName |
User's name. |
Methods
| GetNetworkCredential() |
Returns an equivalent NetworkCredential object for this PSCredential.
|
| GetObjectData(SerializationInfo, StreamingContext) |
GetObjectData |
Operators
| Explicit(PSCredential to NetworkCredential) |
Provides an explicit cast to get a NetworkCredential from this PSCredential. |