public List <PublicKey> GetServicePublicKeys(Guid serviceId) { var request = new ServiceKeysListPostRequest(serviceId); var response = _transport.DirectoryV3ServiceKeysListPost(request, _directoryId); var keys = new List <PublicKey>(); foreach (var transportKey in response.PublicKeys) { keys.Add(new PublicKey( transportKey.Id, transportKey.Active, transportKey.Created, transportKey.Expires )); } return(keys); }