Implement plain password authentication partway. Tested, but no user

functionality yet.
This commit is contained in:
Melanie
2009-09-04 07:03:43 +01:00
parent c9a24ece54
commit 11700ba4a4
8 changed files with 299 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenSim.Services.Interfaces
// the public key of the peer, which the connector must have
// obtained using a remote GetPublicKey call.
//
string Authenticate(UUID principalID, string password);
string Authenticate(UUID principalID, string password, int lifetime);
byte[] AuthenticateEncrypted(byte[] cyphertext, byte[] key);
//////////////////////////////////////////////////////
@@ -85,7 +85,7 @@ namespace OpenSim.Services.Interfaces
// must be used to refresh. Unencrypted verification is still
// performed, but doesn't refresh token lifetime.
//
bool Verify(UUID principalID, string token);
bool Verify(UUID principalID, string token, int lifetime);
bool VerifyEncrypted(byte[] cyphertext, byte[] key);
//////////////////////////////////////////////////////