public KeysListPostResponse OrganizationV3DirectoryKeysListPost(DirectoryKeysListPostRequest request, EntityIdentifier subject)
        {
            var response          = ExecuteRequest(HttpMethod.POST, "/organization/v3/directory/keys/list", subject, request, null);
            var decryptedResponse = DecryptResponse <List <KeysListPostResponse.Key> >(response);

            return(new KeysListPostResponse(decryptedResponse));
        }
        public List <PublicKey> GetDirectoryPublicKeys(Guid directoryId)
        {
            var request  = new DirectoryKeysListPostRequest(directoryId);
            var response = _transport.OrganizationV3DirectoryKeysListPost(request, _organizationId);
            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);
        }