Class WLCGTokenHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
-
- org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
-
- org.oa4mp.server.loader.oauth2.tokens.WLCGTokenHandler
-
- All Implemented Interfaces:
WLCGConstants
,AccessTokenHandlerInterface
,PayloadHandler
,Serializable
public class WLCGTokenHandler extends AbstractAccessTokenHandler implements WLCGConstants
Created by Jeff Gaynor
on 6/26/20 at 4:57 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_AUDIENCE
-
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
-
Fields inherited from interface edu.uiuc.ncsa.myproxy.oa4mp.oauth2.tokens.WLCGConstants
COMPUTE_CANCEL, COMPUTE_CREATE, COMPUTE_MODIFY, COMPUTE_READ, GROUPS_TAG, STORAGE_CREATE, STORAGE_MODIFY, STORAGE_READ, STORAGE_STAGE, WLCG_TAG, WLCG_VERSION_1_0, WLCG_VERSION_TAG
-
-
Constructor Summary
Constructors Constructor Description WLCGTokenHandler(PayloadHandlerConfigImpl cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish(boolean doTemplates, boolean isQuery)
void
setAccountingInformation()
This sets the accounting information (such as the expiration and such) for a token.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.AbstractAccessTokenHandler
addRequestState, checkClaims, finish, getAccessToken, getATConfig, getAtData, getSignedAT, getSignedAT, getSources, handleResponse, init, refreshAccountingInformation, resolveTemplates, saveState, setAccessToken, 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
-
-
-
-
Field Detail
-
DEFAULT_AUDIENCE
public static String DEFAULT_AUDIENCE
-
-
Constructor Detail
-
WLCGTokenHandler
public WLCGTokenHandler(PayloadHandlerConfigImpl cfg)
-
-
Method Detail
-
setAccountingInformation
public void setAccountingInformation()
Description copied from interface:PayloadHandler
This sets the accounting information (such as the expiration and such) for a token. This is called when a token is created or refreshed.- Specified by:
setAccountingInformation
in interfacePayloadHandler
- Overrides:
setAccountingInformation
in classAbstractAccessTokenHandler
-
finish
public void finish(boolean doTemplates, boolean isQuery) throws Throwable
- Overrides:
finish
in classAbstractAccessTokenHandler
- Throws:
Throwable
-
-