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();
|
boolean isSecurityEnabled();
|
||||||
|
|
||||||
|
void setSecurityEnabled(boolean securityEnabled);
|
||||||
|
|
||||||
void stop();
|
void stop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
|
||||||
|
|
||||||
private volatile long lastCheck;
|
private volatile long lastCheck;
|
||||||
|
|
||||||
private final boolean securityEnabled;
|
private boolean securityEnabled;
|
||||||
|
|
||||||
private final String managementClusterUser;
|
private final String managementClusterUser;
|
||||||
|
|
||||||
|
@ -97,6 +97,11 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
|
||||||
return securityEnabled;
|
return securityEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setSecurityEnabled(boolean securityEnabled) {
|
||||||
|
this.securityEnabled = securityEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop() {
|
public void stop() {
|
||||||
securityRepository.unRegisterListener(this);
|
securityRepository.unRegisterListener(this);
|
||||||
|
|
Loading…
Reference in New Issue