Class DefaultAccessTokenHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
-
- org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
-
- org.oa4mp.server.loader.oauth2.tokens.DefaultAccessTokenHandler
-
- All Implemented Interfaces:
AccessTokenHandlerInterface
,PayloadHandler
,Serializable
public class DefaultAccessTokenHandler extends AbstractAccessTokenHandler
For an opaque token. This is NOT a JWT, but does allow for setting a few parameters, viz., the lifetime and QDL can be specified.Created by Jeff Gaynor
on 1/10/22 at 11:13 AM- 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 DefaultAccessTokenHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessToken
getSignedAT(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key)
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, finish, getAccessToken, getATConfig, getAtData, 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
-
-
-
-
Constructor Detail
-
DefaultAccessTokenHandler
public DefaultAccessTokenHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
-
Method Detail
-
getSignedAT
public AccessToken getSignedAT(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key)
- Specified by:
getSignedAT
in interfaceAccessTokenHandlerInterface
- Overrides:
getSignedAT
in classAbstractAccessTokenHandler
-
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
-
-