Class MockAuthenticationWebTestClientConfigurer<T extends org.springframework.security.core.Authentication>
java.lang.Object
com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer<T>
- All Implemented Interfaces:
AuthenticationBuilder<T>,AuthenticationConfigurer<T>,org.springframework.test.web.reactive.server.MockServerConfigurer,org.springframework.test.web.reactive.server.WebTestClientConfigurer
public class MockAuthenticationWebTestClientConfigurer<T extends org.springframework.security.core.Authentication>
extends Object
implements AuthenticationConfigurer<T>
-
Method Summary
Modifier and TypeMethodDescriptionauthorities(String... authorities) authorities(Stream<String> authorities) build()credentials(Object credentials) static MockAuthenticationWebTestClientConfigurer<org.springframework.security.core.Authentication>static <T extends org.springframework.security.core.Authentication>
MockAuthenticationWebTestClientConfigurer<T>mockAuthentication(Class<T> authType) static <T extends org.springframework.security.core.Authentication>
MockAuthenticationWebTestClientConfigurer<T>mockAuthentication(Class<T> authType, Consumer<T> authMockConfigurer) setAuthenticated(boolean authenticated) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.c4_soft.springaddons.security.oauth2.test.webflux.AuthenticationConfigurer
afterConfigureAdded, afterConfigurerAdded, beforeServerCreated, configurer
-
Method Details
-
build
- Specified by:
buildin interfaceAuthenticationBuilder<T extends org.springframework.security.core.Authentication>
-
authorities
-
authorities
-
name
-
credentials
-
details
-
principal
-
setAuthenticated
-
mockAuthentication
public static MockAuthenticationWebTestClientConfigurer<org.springframework.security.core.Authentication> mockAuthentication() -
mockAuthentication
public static <T extends org.springframework.security.core.Authentication> MockAuthenticationWebTestClientConfigurer<T> mockAuthentication(Class<T> authType) -
mockAuthentication
public static <T extends org.springframework.security.core.Authentication> MockAuthenticationWebTestClientConfigurer<T> mockAuthentication(Class<T> authType, Consumer<T> authMockConfigurer)
-