mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user