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>
- Direct Known Subclasses:
OA2ClientConverter
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 V
fromJSON(net.sf.json.JSONObject json)
Assumes client JSON is an object of the form {"client":JSONObject} and searches the object as client.keyV
fromMap(edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map, V v)
protected ClientKeys
getCK()
void
toJSON(V v, net.sf.json.JSONObject json)
void
toMap(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:
fromMap
in classBaseClientConverter<V extends Client>
-
toMap
public void toMap(V client, edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map)
- Overrides:
toMap
in classBaseClientConverter<V extends Client>
-
fromJSON
public V fromJSON(net.sf.json.JSONObject json)
Description copied from class:BaseClientConverter
Assumes client JSON is an object of the form {"client":JSONObject} and searches the object as client.key- Overrides:
fromJSON
in classBaseClientConverter<V extends Client>
- Returns:
-
toJSON
public void toJSON(V v, net.sf.json.JSONObject json)
- Overrides:
toJSON
in classBaseClientConverter<V extends Client>
-
-