Package org.oa4mp.delegation.server
Class OA2Scopes.ScopeUtil
- java.lang.Object
-
- org.oa4mp.delegation.server.OA2Scopes.ScopeUtil
-
-
Field Summary
Fields Modifier and Type Field Description protected static Collection<String>
bList
-
Constructor Summary
Constructors Constructor Description ScopeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<String>
getBasicScopes()
static Collection<String>
getScopes()
static boolean
hasScope(String targetScope)
static Collection<String>
intersection(Collection<String> x, Collection<String> y)
static void
setScopes(Collection<String> scopes)
static Collection<String>
toScopes(String x)
return a collection from the given string of scopes.static String
toString(Collection<String> scopes)
Given a scope collection, turn it into a blank delimited string.
-
-
-
Field Detail
-
bList
protected static Collection<String> bList
-
-
Method Detail
-
getBasicScopes
public static Collection<String> getBasicScopes()
-
intersection
public static Collection<String> intersection(Collection<String> x, Collection<String> y)
-
getScopes
public static Collection<String> getScopes()
-
setScopes
public static void setScopes(Collection<String> scopes)
-
hasScope
public static boolean hasScope(String targetScope)
-
toScopes
public static Collection<String> toScopes(String x)
return a collection from the given string of scopes. note that this applies the specification to parse the string, so all scopes are blank delimited.- Parameters:
x
-- Returns:
-
toString
public static String toString(Collection<String> scopes)
Given a scope collection, turn it into a blank delimited string.- Parameters:
scopes
-- Returns:
-
-