クラス DelegatingAuthenticationEntryPoint

java.lang.ObjectSE
org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint
実装されているすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanAuthenticationEntryPoint

public class DelegatingAuthenticationEntryPoint extends ObjectSE implements AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean
RequestMatcher 評価に基づいて具体的な AuthenticationEntryPoint を選択する AuthenticationEntryPoint

構成は次のようになります。

 <bean id="daep" class="org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint">
     <constructor-arg>
         <map>
             <entry key="hasIpAddress('192.168.1.0/24') and hasHeader('User-Agent','Mozilla')" value-ref="firstAEP" />
             <entry key="hasHeader('User-Agent','MSIE')" value-ref="secondAEP" />
         </map>
     </constructor-arg>
     <property name="defaultEntryPoint" ref="defaultAEP"/>
 </bean>
 
この例では、マップキーの ELRequestMatcher インスタンスを作成する RequestMatcherEditor を使用しています。
導入:
3.0.2