-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBasicAuthenticationCredentials.cs
48 lines (44 loc) · 1.29 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
// The Sisk Framework source code
// Copyright (c) 2024- PROJECT PRINCIPIUM and all Sisk contributors
//
// 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;
}
}