|
|
|
@ -17,8 +17,7 @@
|
|
|
|
|
package org.springframework.boot.actuate.autoconfigure;
|
|
|
|
|
|
|
|
|
|
import java.net.InetAddress;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
@ -179,7 +178,7 @@ public class ManagementServerProperties implements SecurityPrerequisite {
|
|
|
|
|
/**
|
|
|
|
|
* Comma-separated list of roles that can access the management endpoint.
|
|
|
|
|
*/
|
|
|
|
|
private List<String> roles = new ArrayList<String>(Collections.singletonList("ADMIN"));
|
|
|
|
|
private List<String> roles = Arrays.asList("ADMIN");
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Session creating policy to use (always, never, if_required, stateless).
|
|
|
|
@ -200,7 +199,7 @@ public class ManagementServerProperties implements SecurityPrerequisite {
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
public void setRole(String role) {
|
|
|
|
|
this.roles = new ArrayList<String>(Collections.singletonList(role));
|
|
|
|
|
this.roles = Arrays.asList(role);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getRoles() {
|
|
|
|
|