NO-JIRA allow enabling security at runtime

This commit is contained in:
Justin Bertram 2018-06-01 08:42:22 -05:00 committed by Clebert Suconic
parent ef6e3948fd
commit 45ebe4e63d
2 changed files with 8 additions and 1 deletions

View File

@ -29,5 +29,7 @@ public interface SecurityStore {
boolean isSecurityEnabled();
void setSecurityEnabled(boolean securityEnabled);
void stop();
}

View File

@ -60,7 +60,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
private volatile long lastCheck;
private final boolean securityEnabled;
private boolean securityEnabled;
private final String managementClusterUser;
@ -97,6 +97,11 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
return securityEnabled;
}
@Override
public void setSecurityEnabled(boolean securityEnabled) {
this.securityEnabled = securityEnabled;
}
@Override
public void stop() {
securityRepository.unRegisterListener(this);