Class Groups
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,GroupElement>
-
- org.oa4mp.server.loader.oauth2.claims.Groups
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,GroupElement>
public class Groups extends HashMap<String,GroupElement>
A model for groups that are returned by various scope handlers. This is modelled by a JSON array ofGroupElement
objects. Each entry is keyed by the name of the group, so iterating over the keys effectively is a list of groups.Created by Jeff Gaynor
on 3/1/18 at 4:11 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
GROUP_ENTRY_ID
static String
GROUP_ENTRY_NAME
-
Constructor Summary
Constructors Constructor Description Groups()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONArray array)
This presupposes that the elements of the array are normalized in the form {"name":name,"id":id} rather than the raw form that comes froma lot of LDAPs.void
put(GroupElement groupElement)
net.sf.json.JSONArray
toJSON()
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
put
public void put(GroupElement groupElement)
-
toJSON
public net.sf.json.JSONArray toJSON()
-
fromJSON
public void fromJSON(net.sf.json.JSONArray array)
This presupposes that the elements of the array are normalized in the form {"name":name,"id":id} rather than the raw form that comes froma lot of LDAPs.- Parameters:
array
-
-
-