NO-JIRA allow enabling security at runtime
This commit is contained in:
parent
ef6e3948fd
commit
45ebe4e63d
|
@ -29,5 +29,7 @@ public interface SecurityStore {
|
|||
|
||||
boolean isSecurityEnabled();
|
||||
|
||||
void setSecurityEnabled(boolean securityEnabled);
|
||||
|
||||
void stop();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue