クラス AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
java.lang.ObjectSE
org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer<H>.AuthorizedUrl>
org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
- 含まれているクラス:
- AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>
public final class AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
extends AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer<H>.AuthorizedUrl>
RequestMatcher
を AuthorizationManager
にマッピングするためのレジストリ。メソッドのサマリー
修飾子と型メソッド説明and()
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。7.0 の取り外し用。protected AuthorizeHttpRequestsConfigurer<H>.AuthorizedUrl
chainRequestMatchers
(ListSE<RequestMatcher> requestMatchers) サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。shouldFilterAllDispatcherTypes
(boolean shouldFilter) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。代わりに、DispatcherType
へのアクセスを許可します。withObjectPostProcessor
(ObjectPostProcessor<?> objectPostProcessor) このクラスにObjectPostProcessor
を追加します。クラス org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry から継承されたメソッド
anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, requestMatchers, requestMatchers, requestMatchers, requestMatchers, setApplicationContext
メソッドの詳細
chainRequestMatchers
protected AuthorizeHttpRequestsConfigurer<H>.AuthorizedUrl chainRequestMatchers(ListSE<RequestMatcher> requestMatchers) クラスからコピーされた説明:AbstractRequestMatcherRegistry
サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。- 次で指定:
- クラス
AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
のchainRequestMatchers
- パラメーター:
requestMatchers
- 作成されたRequestMatcher
インスタンス- 戻り値:
RequestMatcher
への何かの関連付けを可能にするサブクラスのチェーンオブジェクト
withObjectPostProcessor
public AuthorizeHttpRequestsConfigurer<H>.AuthorizationManagerRequestMatcherRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) このクラスにObjectPostProcessor
を追加します。- パラメーター:
objectPostProcessor
- 使用するObjectPostProcessor
- 戻り値:
- さらなるカスタマイズのための
AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizationManagerRequestMatcherRegistry
shouldFilterAllDispatcherTypes
@DeprecatedSE(since="6.1", forRemoval=true) public AuthorizeHttpRequestsConfigurer<H>.AuthorizationManagerRequestMatcherRegistry shouldFilterAllDispatcherTypes(boolean shouldFilter) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。代わりに、DispatcherType
へのアクセスを許可します。@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll() // ... ); return http.build(); } }
すべてのディスパッチャー型をフィルタリングするかどうかを設定します。- パラメーター:
shouldFilter
- すべてのディスパッチャー型をフィルタリングする必要があります。デフォルトはtrue
です- 戻り値:
- さらなるカスタマイズのための
AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizationManagerRequestMatcherRegistry
- 導入:
- 5.7
and
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。7.0 の取り外し用。代わりにラムダベースの構成を使用してください。AuthorizeHttpRequestsConfigurer
を使用して完了したら、HttpSecurityBuilder
を返します。これはメソッドの連鎖に役立ちます。- 戻り値:
- さらにカスタマイズするための
HttpSecurityBuilder