Class AbstractCommonATandRTConfig
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadConfig
-
- org.oa4mp.server.loader.oauth2.tokens.AbstractCommonATandRTConfig
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessTokenConfig
,RefreshTokenConfig
public class AbstractCommonATandRTConfig extends AbstractPayloadConfig
These are the common configuration items for both access and refresh tokens, such as lifetime, issuer etc.Created by Jeff Gaynor
on 1/18/21 at 6:32 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUDIENCE_KEY
static String
ISSUER_KEY
static String
RESOURCE_KEY
-
Fields inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractPayloadConfig
CREATE_TS_KEY, ID_KEY, LIFETIME_KEY, SUBJECT_KEY, type, TYPE_KEY, VERSIONS_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractCommonATandRTConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONObject jsonObject)
List<String>
getAudience()
The list of audiences (i.e.String
getIssuer()
List<URI>
getResource()
void
setAudience(List<String> audience)
void
setIssuer(String issuer)
void
setResource(List<URI> resource)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractPayloadConfig
getCreationTS, getId, getLifetime, getScriptSet, getSubject, getType, getVersions, hasSubject, setCreationTS, setId, setLifetime, setScriptSet, setSubject, setType, setVersions
-
-
-
-
Method Detail
-
getIssuer
public String getIssuer()
-
setIssuer
public void setIssuer(String issuer)
-
getAudience
public List<String> getAudience()
The list of audiences (i.e. returned in theOA2Claims.AUDIENCE
claim) allowed- Returns:
-
fromJSON
public void fromJSON(net.sf.json.JSONObject jsonObject)
- Overrides:
fromJSON
in classAbstractPayloadConfig
-
toJSON
public net.sf.json.JSONObject toJSON()
- Overrides:
toJSON
in classAbstractPayloadConfig
-
-