Class RFC9068ATHandler
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
-
- org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
-
- org.oa4mp.server.loader.oauth2.tokens.RFC9068ATHandler
-
- All Implemented Interfaces:
Serializable
,AccessTokenHandlerInterface
,IDTokenHandlerInterface
,PayloadHandler
,OA2Scopes
,RFC9068Constants
public class RFC9068ATHandler extends AbstractAccessTokenHandler implements RFC9068Constants
Handler for access tokens as per RFC 9068.Created by Jeff Gaynor
on 11/16/21 at 8:10 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.oa4mp.delegation.server.OA2Scopes
OA2Scopes.ScopeUtil
-
-
Field Summary
-
Fields inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
AT_BASIC_HANDLER_TYPE, AT_DEFAULT_HANDLER_TYPE
-
Fields inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
client, oa2se, payload, request, transaction
-
Fields inherited from interface org.oa4mp.delegation.server.OA2Scopes
basicScopes, EDU_PERSON_ORC_ID, nonPublicScopes, SCOPE_ADDRESS, SCOPE_CILOGON_INFO, SCOPE_EMAIL, SCOPE_MYPROXY, SCOPE_OFFLINE_ACCESS, SCOPE_OPENID, SCOPE_PHONE, SCOPE_PROFILE, SCOPE_TOKEN_MANAGER, SCOPE_USER_INFO
-
Fields inherited from interface org.oa4mp.delegation.server.server.RFC9068Constants
AUTHENTICATION_CLASS_REFERENCE, AUTHENTICATION_METHOD_REFERENCE, AUTHENTICATION_TIME, HEADER_TYPE, RFC9068_TAG, RFC9068_TAG2, TYPE_NAME
-
-
Constructor Summary
Constructors Constructor Description RFC9068ATHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokenImpl
getSignedPayload(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key)
void
init()
Creates and initializes the claims object this class manages.void
setAccountingInformation()
This sets the accounting information (such as the expiration and such) for a token.-
Methods inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractAccessTokenHandler
addRequestState, checkClaims, finish, finish, getAccessToken, getATConfig, getPayload, getSignedPayload, getSources, getUserMetaData, handleResponse, refreshAccountingInformation, resolveTemplates, saveState, setAccessToken, setUserMetaData
-
Methods inherited from class org.oa4mp.server.loader.oauth2.claims.AbstractPayloadHandler
doServerVariables, doSubstitution, execute, getExtendedAttributes, getPhCfg, getResponseCode, getTXRecord, hasScript, hasTXRecord, isEmpty, listToString, refresh, setExtendedAttributes, setPayload, setPhCfg, setResponseCode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.oa4mp.delegation.server.jwt.PayloadHandler
execute, getExtendedAttributes, getPhCfg, getResponseCode, hasScript, refresh, setPayload, setPhCfg, setResponseCode
-
-
-
-
Constructor Detail
-
RFC9068ATHandler
public RFC9068ATHandler(PayloadHandlerConfigImpl payloadHandlerConfig)
-
-
Method Detail
-
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
-
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
-
getSignedPayload
public AccessTokenImpl getSignedPayload(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key)
- Specified by:
getSignedPayload
in interfacePayloadHandler
- Overrides:
getSignedPayload
in classAbstractAccessTokenHandler
-
-