aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
diff options
context:
space:
mode:
authorMelanie2009-09-04 00:55:21 +0100
committerMelanie2009-09-04 00:55:21 +0100
commite39d0ef6272d5ef837e6cc5339d00abdb42317e6 (patch)
tree584ed94cde2efe297cc4eff2ccb1b785fb416b31 /OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
parentAdd the user authentication data adapter. This is meant to use a new table (diff)
downloadopensim-SC_OLD-e39d0ef6272d5ef837e6cc5339d00abdb42317e6.zip
opensim-SC_OLD-e39d0ef6272d5ef837e6cc5339d00abdb42317e6.tar.gz
opensim-SC_OLD-e39d0ef6272d5ef837e6cc5339d00abdb42317e6.tar.bz2
opensim-SC_OLD-e39d0ef6272d5ef837e6cc5339d00abdb42317e6.tar.xz
Flech out the Authentication service. Add the database loader. Introduce
inheritance to deal with common tasks like crypto. Still untested.
Diffstat (limited to 'OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs')
-rw-r--r--OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs25
1 files changed, 12 insertions, 13 deletions
diff --git a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
index d20edb3..5c83299 100644
--- a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
+++ b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
@@ -27,6 +27,10 @@
27 27
28using System; 28using System;
29using OpenMetaverse; 29using OpenMetaverse;
30using OpenSim.Services.Interfaces;
31using log4net;
32using Nini.Config;
33using System.Reflection;
30 34
31namespace OpenSim.Services.AuthenticationService 35namespace OpenSim.Services.AuthenticationService
32{ 36{
@@ -36,11 +40,16 @@ namespace OpenSim.Services.AuthenticationService
36 // or any other components that need 40 // or any other components that need
37 // verifiable identification. 41 // verifiable identification.
38 // 42 //
39 public class PasswordAuthenticationService 43 public class PasswordAuthenticationService :
44 AuthenticationServiceBase, IAuthenticationService
40 { 45 {
41 public byte[] GetPublicKey() 46 private static readonly ILog m_log =
47 LogManager.GetLogger(
48 MethodBase.GetCurrentMethod().DeclaringType);
49
50 public PasswordAuthenticationService(IConfigSource config) :
51 base(config)
42 { 52 {
43 return new byte[0];
44 } 53 }
45 54
46 public string Authenticate(UUID principalID, string password) 55 public string Authenticate(UUID principalID, string password)
@@ -62,15 +71,5 @@ namespace OpenSim.Services.AuthenticationService
62 { 71 {
63 return false; 72 return false;
64 } 73 }
65
66 public bool Release(UUID principalID, string token)
67 {
68 return false;
69 }
70
71 public bool ReleaseEncrypted(byte[] cyphertext, byte[] key)
72 {
73 return false;
74 }
75 } 74 }
76} 75}