Beispiel #1
0
 public ReadOnlyDictionary <Entity, AccessRole> GetAccessRoles(AuthenticationToken authToken)
 {
     return(!IsTokenValid(authToken) ? new ReadOnlyDictionary <Entity, AccessRole>(new Dictionary <Entity, AccessRole>()) : AccessRoles);
 }
Beispiel #2
0
 public Entity GetFirstEntityWithDataBlob <T>(AuthenticationToken authToken) where T : BaseDataBlob
 {
     return(GetFirstEntityWithDataBlob(authToken, GetTypeIndex <T>()));
 }
Beispiel #3
0
 internal bool IsTokenValid(AuthenticationToken authToken)
 {
     return(authToken != null && ID == authToken.PlayerID && ConfirmPassword(authToken.Password));
 }