Class OA2ClientConverter<V extends OA2Client>
- 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>
-
- org.oa4mp.server.loader.oauth2.storage.clients.OA2ClientConverter<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.XMLConverter<V>
public class OA2ClientConverter<V extends OA2Client> extends ClientConverter<V>
Created by Jeff Gaynor
on 3/17/14 at 1:29 PM
-
-
Field Summary
-
Fields inherited from class org.oa4mp.delegation.common.storage.clients.BaseClientConverter
jwkUtil2
-
-
Constructor Summary
Constructors Constructor Description OA2ClientConverter(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
OA2ClientConverter(OA2ClientKeys 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)
OA2ClientKeys
getCK2()
LDAPConfigurationUtil
getLdapConfigurationUtil()
void
toJSON(V client, 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.ClientConverter
getCK
-
Methods inherited from class org.oa4mp.delegation.common.storage.clients.BaseClientConverter
getBKK, getJSONComponentName, getJsonUtil, jsonArrayToCollection
-
-
-
-
Constructor Detail
-
OA2ClientConverter
public OA2ClientConverter(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
-
OA2ClientConverter
public OA2ClientConverter(OA2ClientKeys keys, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider)
-
-
Method Detail
-
getCK2
public OA2ClientKeys getCK2()
-
fromMap
public V fromMap(edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map, V v)
- Overrides:
fromMap
in classClientConverter<V extends OA2Client>
-
getLdapConfigurationUtil
public LDAPConfigurationUtil getLdapConfigurationUtil()
-
toMap
public void toMap(V client, edu.uiuc.ncsa.security.storage.data.ConversionMap<String,Object> map)
- Overrides:
toMap
in classClientConverter<V extends OA2Client>
-
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 classClientConverter<V extends OA2Client>
- Returns:
-
toJSON
public void toJSON(V client, net.sf.json.JSONObject json)
- Overrides:
toJSON
in classClientConverter<V extends OA2Client>
-
-