-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCredential.cs
More file actions
30 lines (24 loc) · 876 Bytes
/
Credential.cs
File metadata and controls
30 lines (24 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
namespace PeterRosser.GetStoredCredentials
{
public class Credential
{
public Credential(CredentialType credentialType, string applicationName, string userName, string password)
{
ApplicationName = applicationName;
UserName = userName;
Password = password;
CredentialType = credentialType;
}
public CredentialType CredentialType { get; }
public string ApplicationName { get; }
public string UserName { get; }
public string Password { get; }
public override string ToString()
{
return
FormattableString.Invariant(
$"CredentialType: {CredentialType}, ApplicationName: {ApplicationName}, UserName: {UserName}, Password: {Password}");
}
}
}