26 lines
524 B
Java
26 lines
524 B
Java
package eu.dnetlib.loginservice.utils;
|
|
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
public class ScopeReader {
|
|
|
|
Set<String> scopes;
|
|
|
|
public ScopeReader(String property) {
|
|
if (!property.trim().isEmpty()){
|
|
scopes = new HashSet<>();
|
|
Collections.addAll(scopes, property.split(","));
|
|
}
|
|
}
|
|
|
|
public Set<String> getScopes() {
|
|
return scopes;
|
|
}
|
|
|
|
public void setScopes(Set<String> scopes) {
|
|
this.scopes = scopes;
|
|
}
|
|
}
|