Last updated on 12/11/19
Integrate Basic Security Into Your Java Web Apps
- Integrate basic security into your Java web apps
Spring Security is a framework that adds out-of-the-box security functionality to your Spring Boot application. What three layers of protection does it add to your application?
Norton Antivirus, Spring Boot Firewall, and Spring Security.
DelegatingFilterProxy, Security Filter Chain, and OAuth Filter Chain.
An HTTP firewall, DelegatingFilterProxy, and Security filter chain.
HTTP firewall, Spring Security, OAuth 2.0 Security.
Which of the following is true about this Spring Security filter chain?Careful, there are several correct answers.
The HTTP requests are sent to
authorizeRequests()to restrict access based on the roles and then
antmatchers()matches the request to a specific pattern which is either admin or user.
formLogin()method builds a login page with Spring Security.
anyRequest().authenticated()ensures that all requests that are not authenticated get a 401 Error.
formLogin()method creates an OAuth 2.0 login that connects to Google.
anyRequest().authenticated()method means that it will authenticate any anonymous user.
Which dependencies are required to configure a Spring Boot web application with Spring Security and OAuth 2.0? (There is more than one answer)Careful, there are several correct answers.
spring-boot-web, spring-security, spring-security-oauth2
spring-boot-web,spring-boot-web-test spring-security, spring-security-test, spring-security-oauth2
spring-framework-boot, spring-security, spring-security-test
spring-boot-web, spring-thymeleaf, spring-oauth2-jose-mvc