Class SecurityMockMvcResultMatchers
- java.lang.Object
-
- org.springframework.security.test.web.servlet.response.SecurityMockMvcResultMatchers
-
public final class SecurityMockMvcResultMatchers extends Object
Security relatedMockMvc
ResultMatcher
s.- Since:
- 4.0
- Author:
- Rob Winch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityMockMvcResultMatchers.AuthenticatedMatcher
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
authenticated
public static SecurityMockMvcResultMatchers.AuthenticatedMatcher authenticated()
ResultMatcher
that verifies that a specified user is authenticated.- Returns:
- the
SecurityMockMvcResultMatchers.AuthenticatedMatcher
to use
-
unauthenticated
public static ResultMatcher unauthenticated()
ResultMatcher
that verifies that no user is authenticated.- Returns:
- the
SecurityMockMvcResultMatchers.AuthenticatedMatcher
to use
-
-