Class SecurityConfigHelper
-
- All Implemented Interfaces:
public class SecurityConfigHelperantMatcher("/users/**") matches any path starting with /users antMatchers("/users") matches only the exact /users URL mvcMatchers("/users") matches /users, /users/, /users.html- Since:
2020-08-10
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSecurityConfigHelper.MatcherHelper
-
Constructor Summary
Constructors Constructor Description SecurityConfigHelper()
-
Method Summary
Modifier and Type Method Description static WingsBindAuthnConfigurer<WingsUserDetailsService>auth()static StringencodePathPattern(@NotNull() String path)encode PathPattern token to url static DummyHttpServletRequestdummyMatcherRequest(@NotNull() String path)fake the HttpServletRequest to test matcher static DummyHttpServletRequestdummyMatcherRequest(@NotNull() String path, String servletName)fake the HttpServletRequest with servletName to test matcher. static CorsConfigurationSourcecorsPermitAll()static Array<String>oauth2AntPaths()static Array<String>testAntPaths()static Array<String>loginAntPaths()static Array<String>swaggerAntPaths()static voidprefixMvc(String mvc, Array<String> path)-
-
Method Detail
-
auth
@NotNull() static WingsBindAuthnConfigurer<WingsUserDetailsService> auth()
-
encodePathPattern
@NotNull() static String encodePathPattern(@NotNull() String path)
encode PathPattern token to url
-
dummyMatcherRequest
@NotNull() static DummyHttpServletRequest dummyMatcherRequest(@NotNull() String path)
fake the HttpServletRequest to test matcher
-
dummyMatcherRequest
@NotNull() static DummyHttpServletRequest dummyMatcherRequest(@NotNull() String path, String servletName)
fake the HttpServletRequest with servletName to test matcher. see Failed to find servlet xx in the servlet context
-
corsPermitAll
@NotNull() static CorsConfigurationSource corsPermitAll()
-
oauth2AntPaths
@NotNull() static Array<String> oauth2AntPaths()
-
testAntPaths
@NotNull() static Array<String> testAntPaths()
-
loginAntPaths
@NotNull() static Array<String> loginAntPaths()
-
swaggerAntPaths
@NotNull() static Array<String> swaggerAntPaths()
-
-
-
-