Spring Security Config : 概念模型接口 SecurityBuilder

博客介绍了安全构建器的概念建模接口,它约定了安全构建器实现类的统一行为,如执行构建调用方法。此接口为泛型接口,泛型参数表示目标构建对象类型,还提及源代码版本为 Spring Security Config 5.1.4.RELEASE。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SecurityBuilderSpring Security Config对安全构建器的概念建模接口,该接口约定了Spring Security Config的各种安全构建器实现类的统一行为:

  1. 执行构建调用 #build() 方法;

这是一个泛型接口,泛型参数O表示目标构建对象的类型(O可以理解成是Output的缩写)。

源代码

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

package org.springframework.security.config.annotation;

/**
 * Interface for building an Object
 *
 * @author Rob Winch
 * @since 3.2
 *
 * @param <O> The type of the Object being built
 */
public interface SecurityBuilder<O> {

	/**
	 * Builds the object and returns it or null.
	 *
	 * @return the Object to be built or null if the implementation allows it.
	 * @throws Exception if an error occurred when building the Object
	 */
	O build() throws Exception;
}

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值