クラス ServerHttpSecurity.HttpsRedirectSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HttpsRedirectSpec
- 含まれているクラス:
- ServerHttpSecurity
public class ServerHttpSecurity.HttpsRedirectSpec extends java.lang.Object
HTTPS リダイレクトルールを構成する- 導入:
- 5.1
- 関連事項:
ServerHttpSecurity.redirectToHttps()
コンストラクターのサマリー
コンストラクター コンストラクター 説明 HttpsRedirectSpec()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity
and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにしますprotected void
configure(ServerHttpSecurity http)
ServerHttpSecurity.HttpsRedirectSpec
httpsRedirectWhen(java.util.function.Function<org.springframework.web.server.ServerWebExchange,java.lang.Boolean> when)
このフィルターが https にリダイレクトするタイミングを構成します。デフォルトでは、フィルターは取引所のスキームが https でない場合は常にリダイレクトされますServerHttpSecurity.HttpsRedirectSpec
httpsRedirectWhen(ServerWebExchangeMatcher... matchers)
このフィルターが https にリダイレクトするタイミングを構成します。デフォルトでは、フィルターは取引所のスキームが https でない場合は常にリダイレクトされますServerHttpSecurity.HttpsRedirectSpec
portMapper(PortMapper portMapper)
リダイレクトするカスタム HTTPS ポートを構成します
メソッドの詳細
httpsRedirectWhen
public ServerHttpSecurity.HttpsRedirectSpec httpsRedirectWhen(ServerWebExchangeMatcher... matchers)
このフィルターが https にリダイレクトするタイミングを構成します。デフォルトでは、フィルターは取引所のスキームが https でない場合は常にリダイレクトされます- パラメーター:
matchers
- 条件が満たされたときにフィルターが https にリダイレクトする条件のリスト- 戻り値:
- 追加構成のための
ServerHttpSecurity.HttpsRedirectSpec
httpsRedirectWhen
public ServerHttpSecurity.HttpsRedirectSpec httpsRedirectWhen(java.util.function.Function<org.springframework.web.server.ServerWebExchange,java.lang.Boolean> when)
このフィルターが https にリダイレクトするタイミングを構成します。デフォルトでは、フィルターは取引所のスキームが https でない場合は常にリダイレクトされます- パラメーター:
when
- https にリダイレクトするタイミングを決定します- 戻り値:
- 追加構成のための
ServerHttpSecurity.HttpsRedirectSpec
portMapper
public ServerHttpSecurity.HttpsRedirectSpec portMapper(PortMapper portMapper)
リダイレクトするカスタム HTTPS ポートを構成します- パラメーター:
portMapper
- 使用するPortMapper
- 戻り値:
- 追加構成のための
ServerHttpSecurity.HttpsRedirectSpec
configure
protected void configure(ServerHttpSecurity http)
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには