pe.gob.id.sdk2.common.Scope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idgobpe_sdk2_java Show documentation
Show all versions of idgobpe_sdk2_java Show documentation
SDK for connect with ID Gob.pe
The newest version!
package pe.gob.id.sdk2.common;
import java.util.HashMap;
import java.util.Map;
/**
* @author Alexander Llacho
*/
public enum Scope {
PROFILE("profile"),
EMAIL("email"),
PHONE("phone"),
OFFLINE_ACCESS("offline_access");
private final String value;
private static final Map lookup = new HashMap<>();
static {
for (Scope d : Scope.values()) {
lookup.put(d.getValue(), d);
}
}
Scope(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public static Scope get(String value) {
return lookup.get(value);
}
}