package org.infinispan.client.rest;

import java.util.List;
import java.util.concurrent.CompletionStage;

/**
 * @author Tristan Tarrant &lt;tristan@infinispan.org&gt;
 * @since 12.1
 **/
public interface RestSecurityClient {
   CompletionStage<RestResponse> listRoles(String principal);

   CompletionStage<RestResponse> grant(String principal, List<String> roles);

   CompletionStage<RestResponse> deny(String principal, List<String> roles);

   CompletionStage<RestResponse> flushCache();
}
