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

com.github.shawven.security.connect.ConnectSecuritySupportConfigurer Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.github.shawven.security.connect;

import com.github.shawven.security.authorization.HttpSecuritySupportConfigurer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

/**
 * @author Shoven
 * @date 2019-11-11
 */
public class ConnectSecuritySupportConfigurer extends HttpSecuritySupportConfigurer {

    private ConnectConfigurer connectConfigurer;

    public ConnectSecuritySupportConfigurer(ConnectConfigurer connectConfigurer) {
        this.connectConfigurer = connectConfigurer;
    }

    @Override
    public void init(HttpSecurity builder) throws Exception {
        connectConfigurer.init(builder);
    }

    @Override
    public void configure(HttpSecurity builder) throws Exception {
        connectConfigurer.configure(builder);
    }

    @Override
    public HttpSecurity and() {
        return connectConfigurer.and();
    }

    @Override
    protected  T postProcess(T object) {
        return connectConfigurer.postProcess(object);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy