com.flyfish.oauth.entry.AuditingEntryPoint Maven / Gradle / Ivy
package com.flyfish.oauth.entry;
import com.flyfish.oauth.domain.auditing.AuditingRecord;
import com.flyfish.oauth.domain.auditing.AuditingStrategy;
import java.io.IOException;
import java.util.List;
/**
* 审计接入点,负责处理审计
*
* @author wangyu
*/
public interface AuditingEntryPoint {
/**
* 获取本系统配置的审计策略,初始化拉取一次,后续获得通知会更新
*
* @return 结果
*/
List getStrategies();
/**
* 提交审计记录
*
* @param record 审计记录
*/
void apply(AuditingRecord record) throws IOException;
}