Class ClientConverter<V extends Client>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.data.MapConverter<V>
-
- edu.uiuc.ncsa.security.storage.monitored.MonitoredConverter<V>
-
- org.oa4mp.delegation.common.storage.clients.BaseClientConverter<V>
-
- org.oa4mp.delegation.common.storage.clients.ClientConverter<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.XMLConverter<V>
public class ClientConverter<V extends Client> extends BaseClientConverter<V>
Created by Jeff Gaynor
on 4/13/12 at 3:48 PM
-
-
Field Summary
-
Fields inherited from class org.oa4mp.delegation.common.storage.clients.BaseClientConverter
jwkUtil2
-
-
Constructor Summary
Constructors Constructor Description ClientConverter(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)ClientConverter(ClientKeys keys, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VfromJSON(net.sf.json.JSONObject json)Assumes client JSON is an object of the form {"client":JSONObject} and searches the object as client.keyVfromMap(edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map, V v)protected ClientKeysgetCK()voidtoJSON(V v, net.sf.json.JSONObject json)voidtoMap(V client, edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map)-
Methods inherited from class org.oa4mp.delegation.common.storage.clients.BaseClientConverter
getBKK, getJSONComponentName, getJsonUtil, jsonArrayToCollection
-
-
-
-
Constructor Detail
-
ClientConverter
public ClientConverter(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
-
ClientConverter
public ClientConverter(ClientKeys keys, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
-
-
Method Detail
-
getCK
protected ClientKeys getCK()
-
fromMap
public V fromMap(edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map, V v)
- Overrides:
fromMapin classBaseClientConverter<V extends Client>
-
toMap
public void toMap(V client, edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map)
- Overrides:
toMapin classBaseClientConverter<V extends Client>
-
fromJSON
public V fromJSON(net.sf.json.JSONObject json)
Description copied from class:BaseClientConverterAssumes client JSON is an object of the form {"client":JSONObject} and searches the object as client.key- Overrides:
fromJSONin classBaseClientConverter<V extends Client>- Returns:
-
toJSON
public void toJSON(V v, net.sf.json.JSONObject json)
- Overrides:
toJSONin classBaseClientConverter<V extends Client>
-
-