aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Net/HttpListenerBasicIdentity.cs
diff options
context:
space:
mode:
authorWWWesten <4700006+WWWesten@users.noreply.github.com>2021-11-01 23:43:29 +0500
committerGitHub <noreply@github.com>2021-11-01 23:43:29 +0500
commit0a14279e2a21bcb9654a06a2d49e1e4f0cc5329c (patch)
treee1b1bd603b011ca98e5793e356326bf4a35a7050 /SocketHttpListener/Net/HttpListenerBasicIdentity.cs
parentf2817fef743eeb75a00782ceea363b2d3e7dc9f2 (diff)
parent76eeb8f655424d295e73ced8349c6fefee6ddb12 (diff)
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'SocketHttpListener/Net/HttpListenerBasicIdentity.cs')
-rw-r--r--SocketHttpListener/Net/HttpListenerBasicIdentity.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/SocketHttpListener/Net/HttpListenerBasicIdentity.cs b/SocketHttpListener/Net/HttpListenerBasicIdentity.cs
deleted file mode 100644
index 5f6ec44b9..000000000
--- a/SocketHttpListener/Net/HttpListenerBasicIdentity.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System.Security.Principal;
-
-namespace SocketHttpListener.Net
-{
- public class HttpListenerBasicIdentity : GenericIdentity
- {
- string password;
-
- public HttpListenerBasicIdentity(string username, string password)
- : base(username, "Basic")
- {
- this.password = password;
- }
-
- public virtual string Password => password;
- }
-
- public class GenericIdentity : IIdentity
- {
- private string m_name;
- private string m_type;
-
- public GenericIdentity(string name)
- {
- if (name == null)
- throw new System.ArgumentNullException(nameof(name));
-
- m_name = name;
- m_type = "";
- }
-
- public GenericIdentity(string name, string type)
- {
- if (name == null)
- throw new System.ArgumentNullException(nameof(name));
- if (type == null)
- throw new System.ArgumentNullException(nameof(type));
-
- m_name = name;
- m_type = type;
- }
-
- public virtual string Name => m_name;
-
- public virtual string AuthenticationType => m_type;
-
- public virtual bool IsAuthenticated => !m_name.Equals("");
- }
-}