2009-05-29 7 views
2

は、私のようなXMLでBeanを持って<security:custom-authentication-provider />を意味しますか?

私が知っている.may

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

以下のものを行い、セキュリティ:私は上記のように私の豆に入れたときにカスタム認証プロバイダが意味しますか?

b。私は作成する必要があります

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

xml?

c。 b。答えは「はい」です。代わりに、私はtheCustomAuthenticationProviderinsideタグのrefを使用できますか?

<security:custom-authentication-provider /> 

春のセキュリティが提供するAuthenicationManagerと認証プロバイダとしてBeanを]レジスタウィル:

答えて

3

アイデアは、豆をマーキングすることです。 bは必要ありません。

関連する問題