com.flyfish.oauth.common.OAuth2PostAware Maven / Gradle / Ivy
package com.flyfish.oauth.common;
import com.flyfish.oauth.client.OAuth2SsoClient;
import com.flyfish.oauth.client.OAuth2SsoClientInitializer;
import com.flyfish.oauth.entry.AuditingEntryPoint;
import com.flyfish.oauth.entry.AuthenticationEntryPoint;
/**
* 提供sso初始化基础支持
*
* @author wangyu
*/
public abstract class OAuth2PostAware implements OAuth2SsoInitializeAware {
protected OAuth2SsoClient client;
protected AuthenticationEntryPoint authenticationEntryPoint;
protected AuditingEntryPoint auditingEntryPoint;
public OAuth2PostAware() {
OAuth2SsoClientInitializer.register(this);
}
/**
* 回传client的值
*
* @param client 客户端
*/
@Override
public void setClient(OAuth2SsoClient client) {
this.client = client;
}
/**
* 回传接入点
*
* @param entryPoint 接入点
*/
@Override
public void setAuthenticationEntryPoint(AuthenticationEntryPoint entryPoint) {
this.authenticationEntryPoint = entryPoint;
}
/**
* 回传审计接入点
*
* @param entryPoint 审计的接入点
*/
@Override
public void setAuditingEntryPoint(AuditingEntryPoint entryPoint) {
this.auditingEntryPoint = entryPoint;
}
}