Skip to content

Files

Latest commit

 

History

History
 
 

Part-6 Spring Boot Security

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Part-6: Spring Boot + Security

All project for spreated secutrity level on it. Figure-1. Security environment and implemenation, step by step.

SecuritySpring

Project-0. SpringUnSecureProject (You may see in README in the Project0..._)

  • Simple project provides Spring Boot and No - Security dependency and using @Security annotation.
  • The mainly 2 parameters: Annotaion with logic and dependency (maven)

Project-1. SpringHttpBasicSecure

  • Simple project provides Spring Boot and Security dependency and using @Security annotation.

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
    

securityHTTP

Project-2 Spring Security Role Based

  • Spring Boot + Web + Security
  • Dependecy adding in Maven

signSecurity

Project-3. SpringSecureRestControl

  • Spring Boot + Web + Security
  • Dependecy adding in Maven

sighsecuriyt

Project-4. SpringSecureAuthorization

  • Spring Boot + Web + Security
  • Dependecy adding in Maven

Project-5. SpringHttpsSecurity

-> Project-5.0.1 SpringHttptoHttps -> Project-6. SpringSecureSSLHttps

  • Http to HTTPS
  • Server configuration Security

    server.port=8443
    server.ssl.enabled=true
   
    ## The path to the keystore containing the certificate
     server.ssl.key-store = src/main/resources/securePC.p12
    #
    ## The format used for the keystore. It could be set to JKS in case it is a JKS file
     server.ssl.key-store-type = PKCS12
    ## The password used to generate the certificate
    server.ssl.key-store-password = 123456

sighSecurityagarin

Project-7. SpringSecureDB

  • Security DB

  • Server configuration in the secutrity with DB

            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-data-jpa</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-security</artifactId>
            </dependency>
                 https://mvnrepository.com/artifact/mysql/mysql-connector-java 
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>8.0.15</version>
            </dependency>
    

Project-8. SpringSecureDB

  • Security DB
  • Server configuration in the secutrity with DB