spring - <安全:custom-authentication-provider/> means?

标签 spring gwt spring-mvc spring-security

我有一个 xml 格式的 bean,如下所示

<bean id="theCustomAuthenticationProvider" class="test.custom.CustomAuthenticationProvider">
<security:custom-authentication-provider />

a.may i know what does security:custom-authentication-provider means when i put it in my bean like above?

b。我需要创建

<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> ref to theCustomAuthenticationProvider 

在 XML 中?

c。如果 b.答案是肯定的,或者,我可以使用 CustomAuthenticationProviderinside 标签的 ref 吗?

最佳答案

这个想法是标记一个bean:

<security:custom-authentication-provider />

将使用 spring security 提供的 AuthenicationManager 将该 bean 注册为身份验证提供程序。您不需要b

关于spring - <安全:custom-authentication-provider/> means?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/924436/

相关文章:

Spring <mvc :resources mapping ="/css/**" location ="/css/"/> doesn't work

java - 如何解决创建Spring上下文时的异常?

javascript - @Produces( {"application/x-javascript"}) 在 spring mvc 版本 4.0.5.RELEASE 中不起作用

javascript - 带有复选框和搜索方法的多选下拉菜单

java - 使用 Oracle 和 PostgreSQL 的长文本列 hibernate

javascript - 在 GWT JSNI 中调用 JCrop

java - GWT 文件上传 OnClick

java - 如何在GWT中获取服务器端的所有ListBox值

java - spring mvc从xml文件读取配置

java - Spring Integration,如何更好地描述验证组件