def InitializeFromEncryption(self, string, username, password):
    encrypted_creds = data_server.DataServerEncryptedCreds(string)

    creds = data_server.DataServerClientCredentials(
        encrypted_creds.GetPayload(username, password))

    # Create client credentials.
    self.client_users = {}
    for client in creds.users:
      self.client_users[client.username] = client

    return self
Test Minion Road Stats request (A2)
dataset/ETHPy150Open google/grr/grr/server/data_server/auth.py/ClientCredentials.InitializeFromEncryption--crossover with--dataset/ETHPy150Open saltstack/salt/salt/daemons/test/test_stats.py/StatsEventerTestCase.testMinionLaneStats