パッケージ org.springframework.security.test.context.support
@NullMarked パッケージ org.springframework.security.test.context.support
Spring、TestContext、フレームワークの Spring Security サポートクラス。
- クラス説明TestSecurityContextHolder からの認証を使用して Reactor コンテキストをセットアップし、テストの最後に Reactor コンテキストをクリアします。
TestExecutionListenerのメソッドのイベントを表しますWithSecurityContextTestExecutionListenerと共に使用すると、このアノテーションをテストメソッドに追加して、匿名ユーザーでの実行をエミュレートできます。WithSecurityContextTestExecutionListenerと共に使用する場合、このアノテーションをテストメソッドに追加して、モックされたユーザーでの実行をエミュレートできます。使用するSecurityContextを決定するためのアノテーション。WithSecurityContextFactory<A extends AnnotationSE>TestSecurityContextHolderに取り込まれるSecurityContextを作成するために WithUserTestExcecutionListener と連携する API。テストメソッドまたはクラスレベルでWithSecurityContextでアノテーションされたアノテーションを見つけるTestExecutionListener。WithSecurityContextTestExecutionListenerと共に使用する場合、このアノテーションをテストメソッドに追加して、UserDetailsServiceから返されたUserDetailsでの実行をエミュレートできます。