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 StringCREATE_TS_KEYstatic StringID_KEYstatic StringLIFETIME_KEYstatic StringSUBJECT_KEYprotected Stringtypestatic StringTYPE_KEYstatic StringVERSIONS_KEY
-
Constructor Summary
Constructors Constructor Description AbstractPayloadConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJSON(net.sf.json.JSONObject jsonObject)DategetCreationTS()StringgetId()LonggetLifetime()edu.uiuc.ncsa.security.util.scripting.ScriptSetgetScriptSet()StringgetSubject()StringgetType()List<String>getVersions()booleanhasSubject()voidsetCreationTS(Date creationTS)voidsetId(String id)voidsetLifetime(Long lifetime)voidsetScriptSet(edu.uiuc.ncsa.security.util.scripting.ScriptSet scriptSet)voidsetSubject(String subject)voidsetType(String type)voidsetVersions(List<String> versions)net.sf.json.JSONObjecttoJSON()
-
-
-
Field Detail
-
TYPE_KEY
public static String TYPE_KEY
-
ID_KEY
public static String ID_KEY
-
VERSIONS_KEY
public static String VERSIONS_KEY
-
CREATE_TS_KEY
public static String CREATE_TS_KEY
-
LIFETIME_KEY
public static String LIFETIME_KEY
-
SUBJECT_KEY
public static String SUBJECT_KEY
-
type
protected String type
-
-
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)
-
hasSubject
public boolean hasSubject()
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
-