Skip to content

Commit 0202aa8

Browse files
committed
fix: Adjust [NotImplemented] on PasswordVault
1 parent f3daf22 commit 0202aa8

File tree

8 files changed

+574
-609
lines changed

8 files changed

+574
-609
lines changed
Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
using System;
22

3-
namespace Windows.Security.Credentials
3+
namespace Windows.Security.Credentials;
4+
5+
public sealed partial class PasswordCredential
46
{
5-
public sealed partial class PasswordCredential
7+
private string _userName;
8+
private string _resource;
9+
private string _password;
10+
11+
public PasswordCredential()
12+
: this(string.Empty, string.Empty, string.Empty)
13+
{
14+
}
15+
16+
public PasswordCredential(string resource, string userName, string password)
17+
{
18+
Resource = resource;
19+
UserName = userName;
20+
Password = password;
21+
}
22+
23+
public string Resource
24+
{
25+
get => _resource;
26+
set => _resource = value ?? throw new ArgumentNullException(nameof(Resource));
27+
}
28+
29+
public string UserName
30+
{
31+
get => _userName;
32+
set => _userName = value ?? throw new ArgumentNullException(nameof(UserName));
33+
}
34+
35+
public string Password
36+
{
37+
get => _password;
38+
set => _password = value ?? throw new ArgumentNullException(nameof(Password));
39+
}
40+
41+
public void RetrievePassword()
642
{
7-
private string _userName;
8-
private string _resource;
9-
private string _password;
10-
11-
public PasswordCredential()
12-
: this(string.Empty, string.Empty, string.Empty)
13-
{
14-
}
15-
16-
public PasswordCredential(string resource, string userName, string password)
17-
{
18-
Resource = resource;
19-
UserName = userName;
20-
Password = password;
21-
}
22-
23-
public string Resource
24-
{
25-
get => _resource;
26-
set => _resource = value ?? throw new ArgumentNullException(nameof(Resource));
27-
}
28-
29-
public string UserName
30-
{
31-
get => _userName;
32-
set => _userName = value ?? throw new ArgumentNullException(nameof(UserName));
33-
}
34-
35-
public string Password
36-
{
37-
get => _password;
38-
set => _password = value ?? throw new ArgumentNullException(nameof(Password));
39-
}
40-
41-
public void RetrievePassword()
42-
{
43-
// Nothing to do, we never hide the password
44-
}
43+
// Nothing to do, we never hide the password
4544
}
4645
}

0 commit comments

Comments
 (0)