package org.o.ran.oam.nf.oam.adopter.app.config;
-import org.o.ran.oam.nf.oam.adopter.app.ServerProperties;
-import org.o.ran.oam.nf.oam.adopter.app.SslProperties;
+import org.o.ran.oam.nf.oam.adopter.app.properties.ServerProperties;
+import org.o.ran.oam.nf.oam.adopter.app.properties.SslProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
if (ssl != null && ssl.getEnabled() != null && ssl.getEnabled()) {
http.requiresChannel().anyRequest().requiresSecure();
}
- http.csrf().disable().antMatcher("/adapters/**").authorizeRequests().anyRequest().hasRole(ADMIN_ROLE).and()
+ http.csrf().disable()
+ .antMatcher("/adapters/**")
+ .authorizeRequests().anyRequest()
+ .hasRole(ADMIN_ROLE).and()
.httpBasic();
}