Class ScitokenHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
-
- org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
-
- org.oa4mp.server.loader.oauth2.tokens.ScitokenHandler
-
- All Implemented Interfaces:
AccessTokenHandlerInterface
,PayloadHandler
,Serializable
public class ScitokenHandler extends AbstractAccessTokenHandler
Created by Jeff Gaynor
on 4/21/20 at 4:55 PM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractAccessTokenHandler
AT_BASIC_HANDLER_TYPE, AT_DEFAULT_HANDLER_TYPE
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractPayloadHandler
claims, oa2se, request, transaction
-
-
Constructor Summary
Constructors Constructor Description ScitokenHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish(boolean doTemplates, boolean isQuery)
String
getUsernameClaimKey()
protected String
getVersion()
NOTE that the SciTokens spec.void
init()
Creates and initializes the claims object this class manages.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractAccessTokenHandler
addRequestState, checkClaims, finish, getAccessToken, getATConfig, getAtData, getSignedAT, getSignedAT, getSources, handleResponse, refreshAccountingInformation, resolveTemplates, saveState, setAccessToken, setAccountingInformation, setAtData
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractPayloadHandler
doServerVariables, doSubstitution, execute, getClaims, getExtendedAttributes, getPhCfg, getResponseCode, getToken, hasScript, isEmpty, listToString, refresh, setClaims, setExtendedAttributes, setPhCfg, setResponseCode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.oa2.jwt.PayloadHandler
execute, getClaims, getExtendedAttributes, getPhCfg, getResponseCode, getToken, hasScript, refresh, setPhCfg, setResponseCode
-
-
-
-
Constructor Detail
-
ScitokenHandler
public ScitokenHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
-
Method Detail
-
getUsernameClaimKey
public String getUsernameClaimKey()
-
getVersion
protected String getVersion()
NOTE that the SciTokens spec. changed substantially form version 1.0 to 2.0. we do not support 1.0. Then again, nobody does really.- Returns:
-
init
public void init() throws Throwable
Description copied from interface:PayloadHandler
Creates and initializes the claims object this class manages.- Specified by:
init
in interfacePayloadHandler
- Overrides:
init
in classAbstractAccessTokenHandler
- Throws:
Throwable
-
finish
public void finish(boolean doTemplates, boolean isQuery) throws Throwable
- Overrides:
finish
in classAbstractAccessTokenHandler
- Throws:
Throwable
-
-