Flech out the Authentication service. Add the database loader. Introduce

inheritance to deal with common tasks like crypto.
Still untested.
This commit is contained in:
Melanie
2009-09-04 00:55:21 +01:00
parent 90262d4092
commit e39d0ef627
3 changed files with 130 additions and 26 deletions

View File

@@ -27,6 +27,10 @@
using System;
using OpenMetaverse;
using OpenSim.Services.Interfaces;
using log4net;
using Nini.Config;
using System.Reflection;
namespace OpenSim.Services.AuthenticationService
{
@@ -36,11 +40,16 @@ namespace OpenSim.Services.AuthenticationService
// or any other components that need
// verifiable identification.
//
public class WebkeyAuthenticationService
public class WebkeyAuthenticationService :
AuthenticationServiceBase, IAuthenticationService
{
public byte[] GetPublicKey()
private static readonly ILog m_log =
LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType);
public WebkeyAuthenticationService(IConfigSource config) :
base(config)
{
return new byte[0];
}
public string Authenticate(UUID principalID, string password)
@@ -62,15 +71,5 @@ namespace OpenSim.Services.AuthenticationService
{
return false;
}
public bool Release(UUID principalID, string token)
{
return false;
}
public bool ReleaseEncrypted(byte[] cyphertext, byte[] key)
{
return false;
}
}
}