Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AddonsWebfluxComponentTest - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webflux
-
To be used when testing secured components which are not controllers
- AddonsWebfluxTestConf - Class in com.c4_soft.springaddons.security.oauth2.test.webflux
- AddonsWebfluxTestConf() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webflux.AddonsWebfluxTestConf
- AddonsWebmvcComponentTest - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
To be used when testing secured components which are not controllers
- AddonsWebmvcTestConf - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
- AddonsWebmvcTestConf() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.AddonsWebmvcTestConf
- afterConfigureAdded(WebTestClient.MockServerSpec<?>) - Method in interface com.c4_soft.springaddons.security.oauth2.test.webflux.AuthenticationConfigurer
- afterConfigurerAdded(WebTestClient.Builder, WebHttpHandlerBuilder, ClientHttpConnector) - Method in interface com.c4_soft.springaddons.security.oauth2.test.webflux.AuthenticationConfigurer
- AuthenticationConfigurer<T extends org.springframework.security.core.Authentication> - Interface in com.c4_soft.springaddons.security.oauth2.test.webflux
-
Redundant code for
AuthenticationWebTestClient configurers - AuthenticationRequestPostProcessor<T extends org.springframework.security.core.Authentication> - Interface in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Redundant code for
AuthenticationMockMvc request post-processors - authorities(String...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- authorities(Stream<String>) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- AutoConfigureAddonsWebfluxClientSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webflux
-
Auto-configures
ReactiveSpringAddonsOidcResourceServerBeansandAddonsWebfluxTestConf. - AutoConfigureAddonsWebfluxMinimalSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webflux
-
To be used to test services or repositories but not controllers: auto-configures
SpringAddonsOidcProperties,SpringAddonsOidcBeans,ReactiveSpringAddonsOidcBeansandAuthenticationFactoriesTestConf - AutoConfigureAddonsWebfluxResourceServerSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webflux
-
Auto-configures
ReactiveSpringAddonsOidcResourceServerBeansandAddonsWebfluxTestConf. - AutoConfigureAddonsWebmvcClientSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Auto-configures
SpringAddonsOidcClientWithLoginBeansas well as what is already configured byAutoConfigureAddonsWebmvcMinimalSecurity. - AutoConfigureAddonsWebmvcMinimalSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
To be used to test services or repositories but not controllers: auto-configures
SpringAddonsOidcProperties,SpringAddonsOidcBeans,AddonsWebmvcTestConfandAuthenticationFactoriesTestConf - AutoConfigureAddonsWebmvcResourceServerSecurity - Annotation Interface in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Auto-configures
SpringAddonsOidcResourceServerBeansas well as what is already configured byAutoConfigureAddonsWebmvcMinimalSecurity.
B
- beanFactory - Variable in class com.c4_soft.springaddons.security.oauth2.test.webmvc.ServletUnitTestingSupport
- beforeServerCreated(WebHttpHandlerBuilder) - Method in interface com.c4_soft.springaddons.security.oauth2.test.webflux.AuthenticationConfigurer
- build() - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
C
- com.c4_soft.springaddons.security.oauth2.test.webflux - package com.c4_soft.springaddons.security.oauth2.test.webflux
- com.c4_soft.springaddons.security.oauth2.test.webmvc - package com.c4_soft.springaddons.security.oauth2.test.webmvc
- configurer() - Method in interface com.c4_soft.springaddons.security.oauth2.test.webflux.AuthenticationConfigurer
- containsContext(HttpServletRequest) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport.TestSecurityContextRepository
- credentials(Object) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
D
- delete(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- delete(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a DELETE request (no header)
- deleteRequestBuilder(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a DELETE request builder.
- details(Object) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
F
- feed(MockHttpServletRequestBuilder, T, MediaType, Charset) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Adds serialized payload to request content.
G
- get(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- get(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to create a builder for a GET request with minimal headers and submit it (Accept header defaulted to what this helper was constructed with).
- get(MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- get(MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a GET request with minimal headers and submit it.
- getContext(HttpServletRequest) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport.TestSecurityContextRepository
- getDefaultCharset() - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientProperties
- getDefaultMediaType() - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientProperties
- getDispatcherServlet() - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
- getRequestBuilder(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory providing with a request builder to issue a GET request (with Accept header defaulted to what this helper is constructed with).
- getRequestBuilder(MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory providing with a request builder to issue a GET request (with Accept header).
H
- head(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a HEAD request (no header)
- headRequestBuilder(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a HEAD request builder.
L
- loadContext(HttpRequestResponseHolder) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport.TestSecurityContextRepository
M
- mockAuthentication() - Static method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- mockAuthentication() - Static method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockAuthenticationRequestPostProcessor
- mockAuthentication(Class<T>) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- mockAuthentication(Class<T>, Object) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockAuthenticationRequestPostProcessor
- mockAuthentication(Class<T>, Consumer<T>) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- MockAuthenticationRequestPostProcessor<T extends org.springframework.security.core.Authentication> - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
- MockAuthenticationRequestPostProcessor(Class<T>, Object) - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockAuthenticationRequestPostProcessor
- MockAuthenticationRequestPostProcessor(Class<T>, Object, Object, Object) - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockAuthenticationRequestPostProcessor
- MockAuthenticationWebTestClientConfigurer<T extends org.springframework.security.core.Authentication> - Class in com.c4_soft.springaddons.security.oauth2.test.webflux
- mockMvc() - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.ServletUnitTestingSupport
- MockMvcPerformException - Exception in com.c4_soft.springaddons.security.oauth2.test.webmvc
- MockMvcPerformException(Throwable) - Constructor for exception com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcPerformException
- MockMvcProperties - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
- MockMvcProperties() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcProperties
- MockMvcSupport - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Just another wrapper for Spring
MockMvc.
It would extendMockMvcif it was not final :-/ - MockMvcSupport(MockMvc, SerializationHelper, MockMvcProperties, ServerProperties, SpringAddonsOidcProperties) - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
- mutateWith(WebTestClientConfigurer) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
N
- name(String) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
O
- oidcId() - Static method in class com.c4_soft.springaddons.security.oauth2.test.webflux.OidcIdAuthenticationTokenWebTestClientConfigurer
- OidcIdAuthenticationTokenWebTestClientConfigurer - Class in com.c4_soft.springaddons.security.oauth2.test.webflux
- OidcIdAuthenticationTokenWebTestClientConfigurer() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webflux.OidcIdAuthenticationTokenWebTestClientConfigurer
- option(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue an OPTION request with default media-type as Accept header
- option(MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue an OPTION request with Accept header
- optionRequestBuilder(String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for an OPTION request initialized with an Accept header set to default media-type.
- optionRequestBuilder(MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for an OPTION request initialized with an Accept header.
P
- patch(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- patch(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a patch request with Content-type header and a body (using default media-type).
- patch(T, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a patch request with Content-type header and a body.
- patch(T, MediaType, Charset, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- patch(T, MediaType, Charset, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a patch request with Content-type header and a body.
- patchRequestBuilder(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a patch request builder (with Content-type set to default media-type).
- patchRequestBuilder(T, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a patch request builder (with Content-type already set).
- patchRequestBuilder(T, MediaType, Charset, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a patch request builder (with Content-type already set).
- perform(MockHttpServletRequestBuilder) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
To be called with fully configured request builder (wraps MockMvc
perform). - post(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- post(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a POST request with provided payload as body, using default media-type for serialization (and Content-type header).
- post(T, MediaType, Charset, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- post(T, MediaType, Charset, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a POST request with provided payload as body, using given media-type for serialization (and Content-type header).
- post(T, MediaType, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a POST request with provided payload as body, using given media-type for serialization (and Content-type header).
- postProcessRequest(MockHttpServletRequest) - Method in interface com.c4_soft.springaddons.security.oauth2.test.webmvc.AuthenticationRequestPostProcessor
- postRequestBuilder(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder.
- postRequestBuilder(T, MediaType, Charset, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder containing a body set to payload serialized in given media type (with adequate Content-type header).
- postRequestBuilder(T, MediaType, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder containing a body set to payload serialized in given media type (with adequate Content-type header).
- principal(Object) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- put(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- put(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a PUT request (with default media-type as Content-type).
- put(T, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a PUT request.
- put(T, MediaType, String, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Shortcut to issue a PUT request.
- put(T, MediaType, Charset, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- putRequestBuilder(T, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder containing a body.
- putRequestBuilder(T, MediaType, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder containing a body.
- putRequestBuilder(T, MediaType, Charset, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a POST request builder containing a body.
R
- requestBuilder(Optional<MediaType>, Optional<Charset>, HttpMethod, String, Object...) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
-
Factory for a generic
MockHttpServletRequestBuilderwith relevant "Accept" and "Content-Type" headers.
S
- save(Authentication, HttpServletRequest) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport
-
Saves the specified
Authenticationinto an emptySecurityContextusing theSecurityContextRepository. - save(SecurityContext, HttpServletRequest) - Static method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport
-
Saves the
SecurityContextusing theSecurityContextRepository - saveContext(SecurityContext, HttpServletRequest, HttpServletResponse) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.SecurityContextRequestPostProcessorSupport.TestSecurityContextRepository
- SecurityContextRequestPostProcessorSupport - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Not visible in springframework (and method not static)
- SecurityContextRequestPostProcessorSupport.TestSecurityContextRepository - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Used to wrap the SecurityContextRepository to provide support for testing in stateless mode
- ServletUnitTestingSupport - Class in com.c4_soft.springaddons.security.oauth2.test.webmvc
-
Helper class for servlet
@Controllerunit-tests using security flow API (useless if using annotations).
Might be used either as a parent class (easier) or collaborator (requires some test configuration). - ServletUnitTestingSupport() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webmvc.ServletUnitTestingSupport
- setAuthenticated(boolean) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.MockAuthenticationWebTestClientConfigurer
- setCharset(Charset) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- setCharset(Charset) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
- setCsrf(boolean) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- setCsrf(boolean) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
- setDefaultCharset(String) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientProperties
- setDefaultMediaType(String) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientProperties
- setMediaType(MediaType) - Method in class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- setMediaType(MediaType) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
- setSecure(boolean) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
W
- WebTestClientProperties - Class in com.c4_soft.springaddons.security.oauth2.test.webflux
- WebTestClientProperties() - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientProperties
- WebTestClientSupport - Class in com.c4_soft.springaddons.security.oauth2.test.webflux
-
You may configure in your test properties:
com.c4-soft.springaddons.test.web.default-charsetdefaulted to utf-8com.c4-soft.springaddons.test.web.default-media-typedefaulted to application+json - WebTestClientSupport(WebTestClientProperties, WebTestClient, SpringAddonsOidcProperties) - Constructor for class com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
- with(RequestPostProcessor) - Method in class com.c4_soft.springaddons.security.oauth2.test.webmvc.MockMvcSupport
All Classes and Interfaces|All Packages|Serialized Form