Namespace: Lithnet.Ecma2Framework
Defines the methods and properties that a password provider must implement
public interface IObjectPasswordProvider
InitializeAsync(PasswordContext)
Initializes the password provider. This method is called once at the start of a batch of password operations
Task InitializeAsync(PasswordContext context)
context PasswordContext
The context of the operation
Task
A task that represents the asynchronous operation
CanPerformPasswordOperationAsync(CSEntry)
Indicates whether the password provider can perform password operations on the specified object
Task<bool> CanPerformPasswordOperationAsync(CSEntry csentry)
csentry CSEntry
The CSEntry representing the object with the associated password change
Task<Boolean>
if the provider can process the password change, otherwise
SetPasswordAsync(CSEntry, SecureString, PasswordOptions)
Sets the password on the specified object
csentry CSEntry
The CSEntry representing the object whose password should be set
newPassword SecureString
The new password
options PasswordOptions
Flags that indicate additional steps that may need to be taken once the password it set
Task
A task that represents the asynchronous operation
ChangePasswordAsync(CSEntry, SecureString, SecureString)
Changes the password on the specified object
csentry CSEntry
The CSEntry representing the object whose password should be changed
oldPassword SecureString
The old password
newPassword SecureString
The new password
Task
A task that represents the asynchronous operation