All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flyfish.oauth.common.OAuth2PostAware Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy