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