Class AbstractPayloadConfig
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadConfig
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractCommonATandRTConfig
,IDTokenClientConfig
public abstract class AbstractPayloadConfig extends Object implements Serializable
This corresponds to the client's configuration for its various payloads -- tokens in this case. These are typically returned by the client, e.g.OA2Client.getIDTokenConfig()
,OA2Client.getAccessTokensConfig()
. Note that this is not designed to be terribly dynamic. It reads the configuration and returns information about it. To update a configuration, you need to twiddle the configuration itself.Created by Jeff Gaynor
on 7/1/20 at 2:45 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CREATE_TS_KEY
static String
ID_KEY
static String
LIFETIME_KEY
protected String
type
static String
TYPE_KEY
static String
VERSIONS_KEY
-
Constructor Summary
Constructors Constructor Description AbstractPayloadConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONObject jsonObject)
Date
getCreationTS()
String
getId()
Long
getLifetime()
edu.uiuc.ncsa.security.util.scripting.ScriptSet
getScriptSet()
String
getType()
List<String>
getVersions()
void
setCreationTS(Date creationTS)
void
setId(String id)
void
setLifetime(Long lifetime)
void
setScriptSet(edu.uiuc.ncsa.security.util.scripting.ScriptSet scriptSet)
void
setType(String type)
void
setVersions(List<String> versions)
net.sf.json.JSONObject
toJSON()
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getCreationTS
public Date getCreationTS()
-
setCreationTS
public void setCreationTS(Date creationTS)
-
fromJSON
public void fromJSON(net.sf.json.JSONObject jsonObject)
-
toJSON
public net.sf.json.JSONObject toJSON()
-
getScriptSet
public edu.uiuc.ncsa.security.util.scripting.ScriptSet getScriptSet()
-
setScriptSet
public void setScriptSet(edu.uiuc.ncsa.security.util.scripting.ScriptSet scriptSet)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getLifetime
public Long getLifetime()
-
setLifetime
public void setLifetime(Long lifetime)
-
-