-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust [NotImplemented] on PasswordVault
- Loading branch information
1 parent
f3daf22
commit 0202aa8
Showing
8 changed files
with
574 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
using System; | ||
|
||
namespace Windows.Security.Credentials | ||
namespace Windows.Security.Credentials; | ||
|
||
public sealed partial class PasswordCredential | ||
{ | ||
public sealed partial class PasswordCredential | ||
private string _userName; | ||
private string _resource; | ||
private string _password; | ||
|
||
public PasswordCredential() | ||
: this(string.Empty, string.Empty, string.Empty) | ||
{ | ||
} | ||
|
||
public PasswordCredential(string resource, string userName, string password) | ||
{ | ||
Resource = resource; | ||
UserName = userName; | ||
Password = password; | ||
} | ||
|
||
public string Resource | ||
{ | ||
get => _resource; | ||
set => _resource = value ?? throw new ArgumentNullException(nameof(Resource)); | ||
} | ||
|
||
public string UserName | ||
{ | ||
get => _userName; | ||
set => _userName = value ?? throw new ArgumentNullException(nameof(UserName)); | ||
} | ||
|
||
public string Password | ||
{ | ||
get => _password; | ||
set => _password = value ?? throw new ArgumentNullException(nameof(Password)); | ||
} | ||
|
||
public void RetrievePassword() | ||
{ | ||
private string _userName; | ||
private string _resource; | ||
private string _password; | ||
|
||
public PasswordCredential() | ||
: this(string.Empty, string.Empty, string.Empty) | ||
{ | ||
} | ||
|
||
public PasswordCredential(string resource, string userName, string password) | ||
{ | ||
Resource = resource; | ||
UserName = userName; | ||
Password = password; | ||
} | ||
|
||
public string Resource | ||
{ | ||
get => _resource; | ||
set => _resource = value ?? throw new ArgumentNullException(nameof(Resource)); | ||
} | ||
|
||
public string UserName | ||
{ | ||
get => _userName; | ||
set => _userName = value ?? throw new ArgumentNullException(nameof(UserName)); | ||
} | ||
|
||
public string Password | ||
{ | ||
get => _password; | ||
set => _password = value ?? throw new ArgumentNullException(nameof(Password)); | ||
} | ||
|
||
public void RetrievePassword() | ||
{ | ||
// Nothing to do, we never hide the password | ||
} | ||
// Nothing to do, we never hide the password | ||
} | ||
} |
Oops, something went wrong.