Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public class ProviderApplicationInitListener extends ApplicationInitListener {
//-------------------------------------------------------------------------------------------------
@Override
protected void customInit(final ContextRefreshedEvent event) {

checkConfiguration();

//Checking the availability of necessary core systems
checkCoreSystemReachability(CoreSystem.SERVICEREGISTRY);
if (sslEnabled && tokenSecurityFilterEnabled) {
Expand All @@ -76,6 +77,14 @@ public void customDestroy() {

//=================================================================================================
// assistant methods

//-------------------------------------------------------------------------------------------------
private void checkConfiguration() {
if (!sslEnabled && tokenSecurityFilterEnabled) {
logger.warn("Contradictory configuration:");
logger.warn("token.security.filter.enabled=true while server.ssl.enabled=false");
}
}

//-------------------------------------------------------------------------------------------------
private void setTokenSecurityFilter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class PublisherApplicationInitListener extends ApplicationInitListener {
//-------------------------------------------------------------------------------------------------
@Override
protected void customInit(final ContextRefreshedEvent event) {

checkConfiguration();

//Checking the availability of necessary core systems
checkCoreSystemReachability(CoreSystem.SERVICEREGISTRY);

Expand Down Expand Up @@ -99,6 +100,14 @@ public void customDestroy() {

//=================================================================================================
// assistant methods

//-------------------------------------------------------------------------------------------------
private void checkConfiguration() {
if (!sslEnabled && tokenSecurityFilterEnabled) {
logger.warn("Contradictory configuration:");
logger.warn("token.security.filter.enabled=true while server.ssl.enabled=false");
}
}

//-------------------------------------------------------------------------------------------------
private void setTokenSecurityFilter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class SubscriberApplicationInitListener extends ApplicationInitListener {
//-------------------------------------------------------------------------------------------------
@Override
protected void customInit(final ContextRefreshedEvent event) {

checkConfiguration();

//Checking the availability of necessary core systems
checkCoreSystemReachability(CoreSystem.SERVICEREGISTRY);

Expand Down Expand Up @@ -116,6 +117,14 @@ public void customDestroy() {

//=================================================================================================
// assistant methods

//-------------------------------------------------------------------------------------------------
private void checkConfiguration() {
if (!sslEnabled && tokenSecurityFilterEnabled) {
logger.warn("Contradictory configuration:");
logger.warn("token.security.filter.enabled=true while server.ssl.enabled=false");
}
}

//-------------------------------------------------------------------------------------------------
private void setTokenSecurityFilter() {
Expand Down