public static class SecurityMockServerConfigurers.UserExchangeMutator
extends java.lang.Object
implements org.springframework.test.web.reactive.server.WebTestClientConfigurer, org.springframework.test.web.reactive.server.MockServerConfigurer
| Modifier and Type | Method and Description |
|---|---|
SecurityMockServerConfigurers.UserExchangeMutator |
accountExpired(boolean accountExpired) |
SecurityMockServerConfigurers.UserExchangeMutator |
accountLocked(boolean accountLocked) |
void |
afterConfigureAdded(org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec) |
void |
afterConfigurerAdded(org.springframework.test.web.reactive.server.WebTestClient.Builder builder,
org.springframework.web.server.adapter.WebHttpHandlerBuilder webHttpHandlerBuilder,
org.springframework.http.client.reactive.ClientHttpConnector clientHttpConnector) |
SecurityMockServerConfigurers.UserExchangeMutator |
authorities(java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Specifies the
GrantedAuthoritys to use. |
SecurityMockServerConfigurers.UserExchangeMutator |
authorities(org.springframework.security.core.GrantedAuthority... authorities)
Specifies the
GrantedAuthoritys to use. |
SecurityMockServerConfigurers.UserExchangeMutator |
authorities(java.lang.String... authorities)
Specifies the
GrantedAuthoritys to use. |
void |
beforeServerCreated(org.springframework.web.server.adapter.WebHttpHandlerBuilder builder) |
SecurityMockServerConfigurers.UserExchangeMutator |
credentialsExpired(boolean credentialsExpired) |
SecurityMockServerConfigurers.UserExchangeMutator |
disabled(boolean disabled) |
SecurityMockServerConfigurers.UserExchangeMutator |
password(java.lang.String password)
Specifies the password to use.
|
SecurityMockServerConfigurers.UserExchangeMutator |
roles(java.lang.String... roles)
Specifies the roles to use.
|
public SecurityMockServerConfigurers.UserExchangeMutator password(java.lang.String password)
password - the password to usepublic SecurityMockServerConfigurers.UserExchangeMutator roles(java.lang.String... roles)
roles - the roles to use.public SecurityMockServerConfigurers.UserExchangeMutator authorities(org.springframework.security.core.GrantedAuthority... authorities)
GrantedAuthoritys to use. Default is "ROLE_USER".authorities - the authorities to use.public SecurityMockServerConfigurers.UserExchangeMutator authorities(java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
GrantedAuthoritys to use. Default is "ROLE_USER".authorities - the authorities to use.public SecurityMockServerConfigurers.UserExchangeMutator authorities(java.lang.String... authorities)
GrantedAuthoritys to use. Default is "ROLE_USER".authorities - the authorities to use.public SecurityMockServerConfigurers.UserExchangeMutator accountExpired(boolean accountExpired)
public SecurityMockServerConfigurers.UserExchangeMutator accountLocked(boolean accountLocked)
public SecurityMockServerConfigurers.UserExchangeMutator credentialsExpired(boolean credentialsExpired)
public SecurityMockServerConfigurers.UserExchangeMutator disabled(boolean disabled)
public void beforeServerCreated(org.springframework.web.server.adapter.WebHttpHandlerBuilder builder)
beforeServerCreated in interface org.springframework.test.web.reactive.server.MockServerConfigurerpublic void afterConfigureAdded(org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec<?> serverSpec)
afterConfigureAdded in interface org.springframework.test.web.reactive.server.MockServerConfigurerpublic void afterConfigurerAdded(org.springframework.test.web.reactive.server.WebTestClient.Builder builder,
@Nullable
org.springframework.web.server.adapter.WebHttpHandlerBuilder webHttpHandlerBuilder,
@Nullable
org.springframework.http.client.reactive.ClientHttpConnector clientHttpConnector)
afterConfigurerAdded in interface org.springframework.test.web.reactive.server.WebTestClientConfigurer