Class SciTokenConfig
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadConfig
-
- org.oa4mp.server.loader.oauth2.tokens.AbstractCommonATandRTConfig
-
- org.oa4mp.server.loader.oauth2.tokens.AccessTokenConfig
-
- org.oa4mp.server.loader.oauth2.tokens.SciTokenConfig
-
- All Implemented Interfaces:
Serializable
public class SciTokenConfig extends AccessTokenConfig
Created by Jeff Gaynor
on 6/30/20 at 10:00 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
USERNAME_CLAIM_KEY
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.tokens.AccessTokenConfig
TEMPLATES_KEY
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.tokens.AbstractCommonATandRTConfig
AUDIENCE_KEY, ISSUER_KEY, RESOURCE_KEY, 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 SciTokenConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONObject jsonObject)
String
getUsernameClaimKey()
If the user wants to use the ${user} template rather than accessing the claim name directly, they could set it here.void
setUsernameClaimKey(String usernameClaimKey)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.tokens.AccessTokenConfig
getTemplates, getType, main, setTemplates
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.tokens.AbstractCommonATandRTConfig
getAudience, getIssuer, getResource, getSubject, hasSubject, setAudience, setIssuer, setResource, setSubject
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractPayloadConfig
getCreationTS, getId, getLifetime, getScriptSet, getVersions, setCreationTS, setId, setLifetime, setScriptSet, setType, setVersions
-
-
-
-
Field Detail
-
USERNAME_CLAIM_KEY
public static String USERNAME_CLAIM_KEY
-
-
Method Detail
-
fromJSON
public void fromJSON(net.sf.json.JSONObject jsonObject)
- Overrides:
fromJSON
in classAccessTokenConfig
-
toJSON
public net.sf.json.JSONObject toJSON()
- Overrides:
toJSON
in classAccessTokenConfig
-
getUsernameClaimKey
public String getUsernameClaimKey()
If the user wants to use the ${user} template rather than accessing the claim name directly, they could set it here.- Returns:
-
setUsernameClaimKey
public void setUsernameClaimKey(String usernameClaimKey)
-
-