29 using System.Collections;
30 using System.Collections.Generic;
32 using OpenSim.Framework;
39 private static Dictionary<UUID, AuthenticationData> m_DataByUUID =
new Dictionary<UUID, AuthenticationData>();
40 private static Dictionary<UUID, string> m_Tokens =
new Dictionary<UUID, string>();
48 if (m_DataByUUID.ContainsKey(principalID))
49 return m_DataByUUID[principalID];
56 m_DataByUUID[data.PrincipalID] = data;
60 public bool SetDataItem(UUID principalID,
string item,
string value)
66 public bool SetToken(UUID principalID,
string token,
int lifetime)
68 m_Tokens[principalID] = token;
72 public bool CheckToken(UUID principalID,
string token,
int lifetime)
74 if (m_Tokens.ContainsKey(principalID))
75 return m_Tokens[principalID] == token;
AuthenticationData Get(UUID principalID)
bool SetDataItem(UUID principalID, string item, string value)
NullAuthenticationData(string connectionString, string realm)
bool SetToken(UUID principalID, string token, int lifetime)
bool CheckToken(UUID principalID, string token, int lifetime)
Interactive OpenSim region server
bool Store(AuthenticationData data)
An interface for connecting to the authentication datastore