com.github.shawven.security.connect.ConnectSecuritySupportConfigurer Maven / Gradle / Ivy
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);
}
}