123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- namespace BestHTTP.Authentication
- {
-
-
-
-
- public enum AuthenticationTypes
- {
-
-
-
- Unknown,
-
-
-
- Basic,
-
-
-
- Digest
- }
-
-
-
- public sealed class Credentials
- {
-
-
-
- public AuthenticationTypes Type { get; private set; }
-
-
-
- public string UserName { get; private set; }
-
-
-
- public string Password { get; private set; }
-
-
-
- public Credentials(string userName, string password)
- :this(AuthenticationTypes.Unknown, userName, password)
- {
- }
-
-
-
- public Credentials(AuthenticationTypes type, string userName, string password)
- {
- this.Type = type;
- this.UserName = userName;
- this.Password = password;
- }
- }
- }
|