INNER CODE UNIT · Java
setProviders
geoserver/geoserver-cloud · src/main/src/main/java/org/geoserver/security/CloudGeoServerSecurityManager.java:79
public void setProviders(List<AuthenticationProvider> providers) throws Exception {
providers = new ArrayList<>(providers);
providers.addAll(0, additionalAuthenticationProviders);
super.setProviders(providers);
}
@Override
public void reload() {
if (reloading.compareAndSet(false, true)) {
// gotta grab a global lock, super.reload() tends to change things
log.debug("Obtaining global lock to reload the security configuration");
configLock.lock(LockType.WRITE);
log.debug("Obtained global lock to reload the security configuration");
SecurityManagerReloaded event = null;
try {
super.reload();