クラス Saml2WebSsoAuthenticationRequestFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- org.springframework.security.saml2.provider.service.servlet.filter.Saml2WebSsoAuthenticationRequestFilter
- 実装されたすべてのインターフェース:
javax.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
コンストラクターのサマリー
コンストラクター コンストラクター 説明 Saml2WebSsoAuthenticationRequestFilter(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
使用すべきではありません。Saml2AuthenticationRequestFactory
を受け取るコンストラクターを使用するSaml2WebSsoAuthenticationRequestFilter(Saml2AuthenticationRequestContextResolver authenticationRequestContextResolver, Saml2AuthenticationRequestFactory authenticationRequestFactory)
提供されたパラメーターを使用してSaml2WebSsoAuthenticationRequestFilter
を作成します
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 非推奨のメソッド 修飾子と型 メソッド 説明 protected void
doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
void
setAuthenticationRequestFactory(Saml2AuthenticationRequestFactory authenticationRequestFactory)
使用すべきではありません。代わりにコンストラクターを使用してくださいvoid
setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository)
指定されたSaml2AuthenticationRequestRepository
を使用して、認証リクエストを保存しますvoid
setRedirectMatcher(RequestMatcher redirectMatcher)
特定のリクエストに対してこのフィルターをアクティブにする特定のRequestMatcher
を使用しますクラス org.springframework.web.filter.OncePerRequestFilter から継承されたメソッド
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
コンストラクターの詳細
Saml2WebSsoAuthenticationRequestFilter
@Deprecated public Saml2WebSsoAuthenticationRequestFilter(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
使用すべきではありません。Saml2AuthenticationRequestFactory
を受け取るコンストラクターを使用する提供されたパラメーターを使用してSaml2WebSsoAuthenticationRequestFilter
を作成します- パラメーター:
relyingPartyRegistrationRepository
- 証明書利用者構成のリポジトリ
Saml2WebSsoAuthenticationRequestFilter
public Saml2WebSsoAuthenticationRequestFilter(Saml2AuthenticationRequestContextResolver authenticationRequestContextResolver, Saml2AuthenticationRequestFactory authenticationRequestFactory)
提供されたパラメーターを使用してSaml2WebSsoAuthenticationRequestFilter
を作成します- パラメーター:
authenticationRequestContextResolver
-Saml2AuthenticationRequestContext
を策定するための戦略authenticationRequestFactory
- <saml2:AuthnRequest> を作成するための戦略- 導入:
- 5.4
メソッドの詳細
setAuthenticationRequestFactory
@Deprecated public void setAuthenticationRequestFactory(Saml2AuthenticationRequestFactory authenticationRequestFactory)
使用すべきではありません。代わりにコンストラクターを使用してください指定されたSaml2AuthenticationRequestFactory
を使用して、SAML 2.0 AuthnRequest を作成します。- パラメーター:
authenticationRequestFactory
- 使用するSaml2AuthenticationRequestFactory
setRedirectMatcher
public void setRedirectMatcher(RequestMatcher redirectMatcher)
特定のリクエストに対してこのフィルターをアクティブにする特定のRequestMatcher
を使用します- パラメーター:
redirectMatcher
- 使用するRequestMatcher
setAuthenticationRequestRepository
public void setAuthenticationRequestRepository(Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest> authenticationRequestRepository)
指定されたSaml2AuthenticationRequestRepository
を使用して、認証リクエストを保存します- パラメーター:
authenticationRequestRepository
- 使用するSaml2AuthenticationRequestRepository
- 導入:
- 5.6
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException
- 次で指定:
- クラス
org.springframework.web.filter.OncePerRequestFilter
のdoFilterInternal
- 例外:
javax.servlet.ServletException
java.io.IOException