Skip to content

Commit

Permalink
fix: Adjust [NotImplemented] on PasswordVault
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 8, 2024
1 parent f3daf22 commit 0202aa8
Show file tree
Hide file tree
Showing 8 changed files with 574 additions and 609 deletions.
79 changes: 39 additions & 40 deletions src/Uno.UWP/Security/Credentials/PasswordCredential.cs
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
}
}
Loading

0 comments on commit 0202aa8

Please sign in to comment.