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
static String
SUBJECT_KEY
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractPayloadConfig
CREATE_TS_KEY, ID_KEY, LIFETIME_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()
String
getSubject()
boolean
hasSubject()
void
setAudience(List<String> audience)
void
setIssuer(String issuer)
void
setResource(List<URI> resource)
void
setSubject(String subject)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractPayloadConfig
getCreationTS, getId, getLifetime, getScriptSet, getType, getVersions, setCreationTS, setId, setLifetime, setScriptSet, setType, setVersions
-
-
-
-
Method Detail
-
getIssuer
public String getIssuer()
-
setIssuer
public void setIssuer(String issuer)
-
hasSubject
public boolean hasSubject()
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
getAudience
public List<String> getAudience()
The list of audiences (i.e. returned in theedu.uiuc.ncsa.security.oauth_2_0.server.claims.OA2Claims#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
-
-