クラス Saml2WebSsoAuthenticationRequestFilter
java.lang.ObjectSE
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.springframework.security.saml2.provider.service.web.Saml2WebSsoAuthenticationRequestFilter
- 実装されたすべてのインターフェース:
jakarta.servlet.Filter
、org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanNameAware
、org.springframework.beans.factory.DisposableBean
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.EnvironmentAware
、org.springframework.core.env.EnvironmentCapable
、org.springframework.web.context.ServletContextAware
public class Saml2WebSsoAuthenticationRequestFilter
extends org.springframework.web.filter.OncePerRequestFilter
この
Filter
は SAML 2.0 AuthnRequest(1968 行目)を作成し、構成されたアサーティングパーティにリダイレクトします。HTTP リダイレクト(行 520)および HTTP-POST(行 753)バインディングをサポートします。
デフォルトでは、この Filter
は URI
/saml2/authenticate/{registrationId}
での認証リクエストに応答します。URI
テンプレート変数 {registrationId}
は、認証リクエストを開始するために使用される証明書利用者の registration identifier
を表します。
- 導入:
- 5.2
フィールドサマリー
クラス org.springframework.web.filter.OncePerRequestFilter から継承されたフィールド
ALREADY_FILTERED_SUFFIX
クラス org.springframework.web.filter.GenericFilterBean から継承されたフィールド
logger
コンストラクターのサマリー
コンストラクターコンストラクター説明Saml2WebSsoAuthenticationRequestFilter
(Saml2AuthenticationRequestResolver authenticationRequestResolver) AuthnRequest
を解決するための戦略でSaml2WebSsoAuthenticationRequestFilter
を構築しますメソッドのサマリー
修飾子と型メソッド説明protected void
doFilterInternal
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) void
setAuthenticationRequestRepository
(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) 指定されたSaml2AuthenticationRequestRepository
を使用して、認証リクエストを保存しますクラス org.springframework.web.filter.OncePerRequestFilter から継承されたメソッド
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
クラス org.springframework.web.filter.GenericFilterBean から継承されたメソッド
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
コンストラクターの詳細
Saml2WebSsoAuthenticationRequestFilter
public Saml2WebSsoAuthenticationRequestFilter(Saml2AuthenticationRequestResolver authenticationRequestResolver) AuthnRequest
を解決するための戦略でSaml2WebSsoAuthenticationRequestFilter
を構築します- パラメーター:
authenticationRequestResolver
-AuthnRequest
を解決するための戦略- 導入:
- 5.7
メソッドの詳細
setAuthenticationRequestRepository
public void setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository) 指定されたSaml2AuthenticationRequestRepository
を使用して、認証リクエストを保存します- パラメーター:
authenticationRequestRepository
- 使用するSaml2AuthenticationRequestRepository
- 導入:
- 5.6
doFilterInternal
protected void doFilterInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws jakarta.servlet.ServletException, IOExceptionSE - 次で指定:
- クラス
org.springframework.web.filter.OncePerRequestFilter
のdoFilterInternal
- 例外:
jakarta.servlet.ServletException
IOExceptionSE