Spring Security Config : 概念模型 WebSecurityConfigurer Web安全配置器

概述

介绍

WebSecurityConfigurerSpring Security Config的一个概念模型接口,用于建模"Web安全配置器"这一概念模型。
WebSecurityConfigurer被设计用于配置某个构建目标为Filter的某个SecurityBuilder安全构建器,WebSecurityConfigurer自身并没有定义任何方法,但是它继承自接口SecurityConfigurer,表明这是一个"安全配置器",所以它也具有SecurityConfigurer所具备的初始化能力#init和构建能力#configure

继承关系

WebSecurityConfigurer

源代码

源代码版本 : Spring Security Config 5.1.4.RELEASE

package org.springframework.security.config.annotation.web;

import javax.servlet.Filter;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.SecurityBuilder;
import org.springframework.security.config.annotation.SecurityConfigurer;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * Allows customization to the WebSecurity. In most instances users will use
 * EnableWebSecurity and a create Configuration that extends
 * WebSecurityConfigurerAdapter which will automatically be applied to the
 * WebSecurity by the EnableWebSecurity annotation.
 *
 * @see WebSecurityConfigurerAdapter
 *
 * @author Rob Winch
 * @since 3.2
 */
public interface WebSecurityConfigurer<T extends SecurityBuilder<Filter>> extends
		SecurityConfigurer<Filter, T> {

}

参考文章

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值