class SecretsDeliveryResource {

  @Timed @ExceptionMetered
  @GET
  public List<SecretDeliveryResponse> getSecrets(@Auth Client client) {
    logger.info("Client {} listed available secrets.", client.getName());
    return aclDAO.getSanitizedSecretsFor(client).stream()
        .map(SecretDeliveryResponse::fromSanitizedSecret)
        .collect(toList());
  }

  @Inject public  SecretsDeliveryResource(AclDAOFactory aclDAOFactory);
  @VisibleForTesting  SecretsDeliveryResource(AclDAO aclDAO);

}