forked from sisk-http/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BasicAuthenticationCredentials.cs
50 lines (46 loc) · 1.26 KB
/
BasicAuthenticationCredentials.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// The Sisk Framework source code
// Copyright (c) 2023 PROJECT PRINCIPIUM
//
// The code below is licensed under the MIT license as
// of the date of its publication, available at
//
// File name: BasicAuthenticationCredentials.cs
// Repository: https://github.com/sisk-http/core
namespace Sisk.BasicAuth;
/// <summary>
/// Represents basic authentication credentials for an HTTP request.
/// </summary>
/// <definition>
/// public class BasicAuthenticationCredentials
/// </definition>
/// <type>
/// Class
/// </type>
public class BasicAuthenticationCredentials
{
/// <summary>
/// Gets the user id component from this credentials.
/// </summary>
/// <definition>
/// public string UserId { get; }
/// </definition>
/// <type>
/// Property
/// </type>
public string UserId { get; private set; }
/// <summary>
/// Gets the plain password component from this credentials.
/// </summary>
/// <definition>
/// public string Password { get; }
/// </definition>
/// <type>
/// Property
/// </type>
public string Password { get; private set; }
internal BasicAuthenticationCredentials(string username, string password)
{
this.UserId = username;
this.Password = password;
}
}