クラス CasGatewayAuthenticationRedirectFilter

java.lang.ObjectSE
org.springframework.web.filter.GenericFilterBean
org.springframework.security.cas.web.CasGatewayAuthenticationRedirectFilter
実装されたすべてのインターフェース:
jakarta.servlet.Filterorg.springframework.beans.factory.Awareorg.springframework.beans.factory.BeanNameAwareorg.springframework.beans.factory.DisposableBeanorg.springframework.beans.factory.InitializingBeanorg.springframework.context.EnvironmentAwareorg.springframework.core.env.EnvironmentCapableorg.springframework.web.context.ServletContextAware

public final class CasGatewayAuthenticationRedirectFilter extends org.springframework.web.filter.GenericFilterBean
リクエストを CAS サーバーにリダイレクトし、URL に gateway=true を追加します。リダイレクト時に、ServiceProperties.isSendRenew() は無視され、sendRenew パラメーターが gateway パラメーターと互換性がないという仕様に合わせて false と見なされます。詳細については、CAS プロトコル仕様を参照してください。リクエストがゲートウェイリクエストであるかどうかを他のフィルターが認識できるように、このフィルターはセッションを作成し、必要に応じて他のフィルターでチェックできる CAS_GATEWAY_AUTHENTICATION_ATTR という名前の属性を追加します。このフィルターが定義されている場合は、CasAuthenticationFilter の後に配置することをお勧めします。
導入:
6.3
  • フィールドサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    static final StringSE

    クラス org.springframework.web.filter.GenericFilterBean から継承されたフィールド

    logger
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
    このクラスの新しいインスタンスを構築します
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain)
    void
    CAS サーバーからのリダイレクト後に再生される現在のリクエストを保存するために使用される RequestCache を設定します。
    void
    このフィルターをトリガーするために使用される RequestMatcher を設定します。

    クラス org.springframework.web.filter.GenericFilterBean から継承されたメソッド

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • フィールドの詳細

  • コンストラクターの詳細

    • CasGatewayAuthenticationRedirectFilter

      public CasGatewayAuthenticationRedirectFilter(StringSE casLoginUrl, ServiceProperties serviceProperties)
      このクラスの新しいインスタンスを構築します
      パラメーター:
      serviceProperties - ServiceProperties
  • メソッドの詳細

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) throws IOExceptionSE, jakarta.servlet.ServletException
      例外:
      IOExceptionSE
      jakarta.servlet.ServletException
    • setRequestMatcher

      public void setRequestMatcher(RequestMatcher requestMatcher)
      このフィルターをトリガーするために使用される RequestMatcher を設定します。デフォルトは CasGatewayResolverRequestMatcher です。
      パラメーター:
      requestMatcher - 使用する RequestMatcher
    • setRequestCache

      public void setRequestCache(RequestCache requestCache)
      CAS サーバーからのリダイレクト後に再生される現在のリクエストを保存するために使用される RequestCache を設定します。デフォルトは HttpSessionRequestCache です。
      パラメーター:
      requestCache - 使用する RequestCache