Browse Source

List.of cannot be used in java8

minimal_privilege
lucio.lelii 2 months ago
parent
commit
c42094df38
  1. 3
      src/main/java/org/gcube/smartgears/utils/GcubeJwt.java

3
src/main/java/org/gcube/smartgears/utils/GcubeJwt.java

@ -4,6 +4,7 @@ import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -14,7 +15,7 @@ import org.gcube.com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class GcubeJwt {
protected final static List<String> MINIMAL_ROLES = List.of("Member");
protected final static List<String> MINIMAL_ROLES = Arrays.asList("Member");
@JsonProperty("aud")
private String context;

Loading…
Cancel
Save