クラス ExceptionTranslationWebFilter
- java.lang.Object
-
- org.springframework.security.web.server.authorization.ExceptionTranslationWebFilter
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.context.MessageSourceAware
、org.springframework.web.server.WebFilter
public class ExceptionTranslationWebFilter extends java.lang.Object implements org.springframework.web.server.WebFilter, org.springframework.context.MessageSourceAware
- 導入:
- 5.0
フィールドサマリー
フィールド 修飾子と型 フィールド 説明 protected org.springframework.context.support.MessageSourceAccessor
messages
コンストラクターのサマリー
コンストラクター コンストラクター 説明 ExceptionTranslationWebFilter()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 reactor.core.publisher.Mono<java.lang.Void>
filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
void
setAccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
アクセス拒否ハンドラーを設定します。void
setAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
認証が必要なときに使用される認証エントリポイントを設定しますvoid
setAuthenticationTrustResolver(AuthenticationTrustResolver authenticationTrustResolver)
認証トラストリゾルバーを設定します。void
setMessageSource(org.springframework.context.MessageSource messageSource)
メソッドの詳細
filter
public reactor.core.publisher.Mono<java.lang.Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
- 次で指定:
- インターフェース
org.springframework.web.server.WebFilter
のfilter
setAccessDeniedHandler
public void setAccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
アクセス拒否ハンドラーを設定します。- パラメーター:
accessDeniedHandler
- 使用するアクセス拒否ハンドラー。デフォルトは HttpStatusAccessDeniedHandler と HttpStatus.FORBIDDEN です
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
認証が必要なときに使用される認証エントリポイントを設定します- パラメーター:
authenticationEntryPoint
- 使用する認証エントリポイント。デフォルトはHttpBasicServerAuthenticationEntryPoint
です
setAuthenticationTrustResolver
public void setAuthenticationTrustResolver(AuthenticationTrustResolver authenticationTrustResolver)
認証トラストリゾルバーを設定します。- パラメーター:
authenticationTrustResolver
- 使用する認証トラストリゾルバー。デフォルトはAuthenticationTrustResolverImpl
です- 導入:
- 5.5
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- 次で指定:
- インターフェース
org.springframework.context.MessageSourceAware
のsetMessageSource
- 導入:
- 5.5