Skip to content

Commit fba9f8f

Browse files
Fixed indentation and removed empty lines.
1 parent 91a1804 commit fba9f8f

7 files changed

Lines changed: 15 additions & 31 deletions

File tree

‎spring-security-x509/basic-secured-server/pom.xml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,4 @@
5353
</plugin>
5454
</plugins>
5555
</build>
56-
57-
5856
</project>

‎spring-security-x509/basic-secured-server/src/main/java/com/baeldung/spring/security/x509/X509AuthenticationServer.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
package com.baeldung.spring.security.x509;
22

3-
import org.springframework.beans.factory.annotation.Autowired;
43
import org.springframework.boot.SpringApplication;
54
import org.springframework.boot.autoconfigure.SpringBootApplication;
65
import org.springframework.context.annotation.Bean;
7-
import org.springframework.security.authentication.AuthenticationManager;
8-
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
96
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
107
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
11-
import org.springframework.security.config.annotation.web.builders.WebSecurity;
128
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
139
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
1410
import org.springframework.security.core.authority.AuthorityUtils;
@@ -21,7 +17,6 @@
2117
@EnableWebSecurity
2218
@EnableGlobalMethodSecurity(prePostEnabled = true)
2319
public class X509AuthenticationServer extends WebSecurityConfigurerAdapter {
24-
2520
public static void main(String[] args) {
2621
SpringApplication.run(X509AuthenticationServer.class, args);
2722
}

‎spring-security-x509/basic-secured-server/src/main/resources/application.properties‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ server.ssl.key-password=${PASSWORD}
55
server.ssl.enabled=true
66
server.port=8443
77
security.user.name=Admin
8-
security.user.password=admin
9-
server.ssl.trust-store=../keystore/truststore.jks
10-
server.ssl.trust-store-password=${PASSWORD}
11-
server.ssl.client-auth=need
8+
security.user.password=admin
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html xmlns:th="http://www.thymeleaf.org">
3-
<head>
4-
<title>X.509 Authentication Demo</title>
5-
</head>
6-
<body>
7-
<h2>Hello <span th:text="${username}" />!</h2>
8-
</body>
9-
</html>
3+
<head>
4+
<title>X.509 Authentication Demo</title>
5+
</head>
6+
<body>
7+
<h2>Hello <span th:text="${username}" />!</h2>
8+
</body>
9+
</html>

‎spring-security-x509/client-auth-server/pom.xml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,4 @@
5353
</plugin>
5454
</plugins>
5555
</build>
56-
57-
5856
</project>

‎spring-security-x509/client-auth-server/src/main/java/com/baeldung/spring/security/x509/X509AuthenticationServer.java‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
package com.baeldung.spring.security.x509;
22

3-
import org.springframework.beans.factory.annotation.Autowired;
43
import org.springframework.boot.SpringApplication;
54
import org.springframework.boot.autoconfigure.SpringBootApplication;
65
import org.springframework.context.annotation.Bean;
7-
import org.springframework.security.authentication.AuthenticationManager;
8-
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
96
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
107
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
11-
import org.springframework.security.config.annotation.web.builders.WebSecurity;
128
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
139
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
1410
import org.springframework.security.core.authority.AuthorityUtils;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html xmlns:th="http://www.thymeleaf.org">
3-
<head>
4-
<title>X.509 Authentication Demo</title>
5-
</head>
6-
<body>
7-
<h2>Hello <span th:text="${username}"/>!</h2>
8-
</body>
9-
</html>
3+
<head>
4+
<title>X.509 Authentication Demo</title>
5+
</head>
6+
<body>
7+
<h2>Hello <span th:text="${username}"/>!</h2>
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)