クラス SecureChannelProcessor

java.lang.ObjectSE
org.springframework.security.web.access.channel.SecureChannelProcessor
実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanChannelProcessor

public class SecureChannelProcessor extends ObjectSE implements org.springframework.beans.factory.InitializingBean, ChannelProcessor
HttpServletRequest.isSecure() レスポンスのレビューにより、チャネルセキュリティがアクティブであることを確認します。

クラスは、大文字と小文字を区別する 1 つのキーワード getSecureKeyword() に応答します。このキーワードが検出された場合、HttpServletRequest.isSecure() を使用して、提供されるチャネルセキュリティが決定されます。チャネルセキュリティが存在しない場合、構成された ChannelEntryPoint が呼び出されます。デフォルトでは、エントリポイントは RetryWithHttpsEntryPoint です。

デフォルトの secureKeyword は REQUIRES_SECURE_CHANNEL です。

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

    • SecureChannelProcessor

      public SecureChannelProcessor()
  • メソッドの詳細

    • afterPropertiesSet

      public void afterPropertiesSet()
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
    • decide

      public void decide(FilterInvocation invocation, CollectionSE<ConfigAttribute> config) throws IOExceptionSE, jakarta.servlet.ServletException
      インターフェースからコピーされた説明: ChannelProcessor
      提示された FilterInvocation が、リクエストされた ConfigAttribute のリストに基づいて適切なレベルのチャネルセキュリティを提供するかどうかを決定しました。
      次で指定:
      インターフェース ChannelProcessordecide 
      例外:
      IOExceptionSE
      jakarta.servlet.ServletException
    • getEntryPoint

      public ChannelEntryPoint getEntryPoint()
    • getSecureKeyword

      public StringSE getSecureKeyword()
    • setEntryPoint

      public void setEntryPoint(ChannelEntryPoint entryPoint)
    • setSecureKeyword

      public void setSecureKeyword(StringSE secureKeyword)
    • supports

      public boolean supports(ConfigAttribute attribute)
      インターフェースからコピーされた説明: ChannelProcessor
      この ChannelProcessor が、渡された ConfigAttribute を処理できるかどうかを示します。

      これにより、ChannelProcessingFilter は、構成された ChannelDecisionManager が消費できるすべての構成属性を確認できます。

      次で指定:
      インターフェース ChannelProcessorsupports 
      パラメーター:
      attribute - ChannelProcessingFilter に対して構成された構成属性。
      戻り値:
      この ChannelProcessor が渡された構成属性をサポートできる場合は true