Class PasswordHistory
Descriptor of password history. Password stored as plain text
Returned as a member of PasswordInfo classInheritance
System.Object
PasswordHistory
Namespace: AdmPwd.Types
Assembly: AdmPwd.PDSWrapper.dll
Syntax
public class PasswordHistory : Object
Constructors
PasswordHistory(DateTime, DateTime, uint, string)
Constructs the object.
Declaration
public PasswordHistory(DateTime from, DateTime to, uint keyId, string password)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | from | When password started to be valid |
System.DateTime | to | When passord was replaced by newer one. |
uint | keyId | Id of key that was used to encrypt the password |
string | password | Password itself |
Properties
KeyId
ID of RSA key that was used to encrypt the password
0 means that if password is not encrypted in ADDeclaration
public uint KeyId { get; }
Property Value
Type | Description |
---|---|
uint |
Password
Password
Declaration
public string Password { get; }
Property Value
Type | Description |
---|---|
string |
ValidSince
When password started to be valid
Declaration
public DateTime ValidSince { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
ValidUntil
When password was reset/replaced
Declaration
public DateTime ValidUntil { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
ToString()
Overriden to better show data in PowerShell
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Password string in plain text |