2021-11-05 09:19:44 +01:00
|
|
|
package eu.dnetlib.loginservice.utils;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Set;
|
|
|
|
|
2023-04-04 21:19:15 +02:00
|
|
|
public class PropertyReader {
|
2021-11-05 09:19:44 +01:00
|
|
|
|
|
|
|
Set<String> scopes;
|
|
|
|
|
2023-04-04 21:19:15 +02:00
|
|
|
public PropertyReader(String property) {
|
2021-11-05 09:19:44 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|