Skip to content

Commit

Permalink
Merge pull request #18997 from unoplatform/dev/mazi/istypepresent
Browse files Browse the repository at this point in the history
fix: Adjust `[NotImplemented]` on `PasswordVault`
  • Loading branch information
jeromelaban authored Dec 9, 2024
2 parents 49ad730 + 0202aa8 commit 15cfdb5
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 15cfdb5

Please sign in to comment.