public final class SecurityMockMvcResultMatchers extends Object
MockMvc ResultMatchers.| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityMockMvcResultMatchers.AuthenticatedMatcher
|
| Modifier and Type | Method and Description |
|---|---|
static SecurityMockMvcResultMatchers.AuthenticatedMatcher |
authenticated()
ResultMatcher that verifies that a specified user is authenticated. |
static ResultMatcher |
unauthenticated()
ResultMatcher that verifies that no user is authenticated. |
public static SecurityMockMvcResultMatchers.AuthenticatedMatcher authenticated()
ResultMatcher that verifies that a specified user is authenticated.SecurityMockMvcResultMatchers.AuthenticatedMatcher to usepublic static ResultMatcher unauthenticated()
ResultMatcher that verifies that no user is authenticated.SecurityMockMvcResultMatchers.AuthenticatedMatcher to use