bael-4828: remove classes and files from module spring-security-web-boot-2
This commit is contained in:
parent
fbf4afa073
commit
d7ad10fd9c
|
@ -1,16 +0,0 @@
|
||||||
package com.baeldung.tls;
|
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus;
|
|
||||||
import org.springframework.http.ResponseEntity;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class HomeController {
|
|
||||||
|
|
||||||
@GetMapping("/baeldung")
|
|
||||||
public ResponseEntity<String> welcome() {
|
|
||||||
return new ResponseEntity<>("tls/baeldung", HttpStatus.OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
package com.baeldung.tls;
|
|
||||||
|
|
||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
|
||||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
|
||||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
|
||||||
|
|
||||||
@EnableWebSecurity
|
|
||||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
|
||||||
http.authorizeRequests()
|
|
||||||
.antMatchers("/**")
|
|
||||||
.permitAll();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
package com.baeldung.tls;
|
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.context.annotation.PropertySource;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
public class TLSEnabledApplication {
|
|
||||||
|
|
||||||
public static void main(String... args) {
|
|
||||||
SpringApplication application = new SpringApplication(TLSEnabledApplication.class);
|
|
||||||
application.setAdditionalProfiles("tls");
|
|
||||||
application.run(args);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
|
|
||||||
server.port=8443
|
|
||||||
|
|
||||||
# enable/disable https
|
|
||||||
server.ssl.enabled=true
|
|
||||||
# keystore format
|
|
||||||
server.ssl.key-store-type=PKCS12
|
|
||||||
# keystore location
|
|
||||||
server.ssl.key-store=classpath:keystore/keystore.p12
|
|
||||||
# keystore password
|
|
||||||
server.ssl.key-store-password=changeit
|
|
||||||
server.ssl.key-alias=baeldung
|
|
||||||
# SSL protocol to use
|
|
||||||
server.ssl.protocol=TLS
|
|
||||||
# Enabled SSL protocols
|
|
||||||
server.ssl.enabled-protocols=TLSv1.2
|
|
||||||
|
|
||||||
#server.ssl.client-auth=need
|
|
||||||
|
|
||||||
#trust store location
|
|
||||||
#server.ssl.trust-store=classpath:keystore/truststore.p12
|
|
||||||
#trust store password
|
|
||||||
#server.ssl.trust-store-password=changeit
|
|
|
@ -1,28 +0,0 @@
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIExzCCAq+gAwIBAgIEbh/WszANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDEwls
|
|
||||||
b2NhbGhvc3QwHhcNMjEwMzIxMDgzMzU3WhcNMzEwMzE5MDgzMzU3WjAUMRIwEAYD
|
|
||||||
VQQDEwlsb2NhbGhvc3QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCD
|
|
||||||
QWvAEewDE+vFFqYPgXFJ94bMgPZT6qdb17DkWWbL2jV5QENbSYTLAPNQ1TGUgKhj
|
|
||||||
t1LCHpooLwWIo6xvhK/qZYjh3YonSIe8Eo0fBCDoZpLO+Vp0us22NBgLOYH8hvAm
|
|
||||||
zEvPXdSZo5Qkeaqjwd6kB/z083y8OL+Civ0ARXoLsn7CFslKfZp2o/aebH6i/T+3
|
|
||||||
hWVqasIIMtfNUrxE/pnOnV8aSAt24jcm/VxbtheqIzmcOPlCXSP1RAmFez6tJsNu
|
|
||||||
2dbUhaeOf95RCaM6a43so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0OT1qWD5gx3nOmAbBk1e3r8ESMo9k29/4hycUUUgtFuWtBwBaY/O/4YoLx59wbpL
|
|
||||||
rFR/zjKIdYFj0AM2ABTgrG7v5pEhjLTnzjc+mZV7hJCBvB+bbC5vvfDg0K7lQUpJ
|
|
||||||
ruIPvqKfJyuTwkKmoTF5jmG04jwUDtA5iGUB3U3QiQ8zcbTiVRptXLEQDYw/bzDk
|
|
||||||
0fd4xTbok1ygI7wJ/KRyMvFXdbTKSvVu/tnM
|
|
||||||
-----END CERTIFICATE-----
|
|
Binary file not shown.
Loading…
Reference in New Issue