Class BasicRefreshTokenHandler

  • All Implemented Interfaces:
    Serializable, org.oa4mp.delegation.server.jwt.PayloadHandler, org.oa4mp.delegation.server.jwt.RefreshTokenHandlerInterface, org.oa4mp.delegation.server.OA2Scopes

    public class BasicRefreshTokenHandler
    extends AbstractPayloadHandler
    implements org.oa4mp.delegation.server.jwt.RefreshTokenHandlerInterface

    Created by Jeff Gaynor
    on 8/5/20 at 9:18 AM

    See Also:
    Serialized Form
    • Method Detail

      • getRefreshToken

        public RefreshToken getRefreshToken()
        Specified by:
        getRefreshToken in interface org.oa4mp.delegation.server.jwt.RefreshTokenHandlerInterface
      • setRefreshToken

        public void setRefreshToken​(RefreshToken refreshToken)
        Specified by:
        setRefreshToken in interface org.oa4mp.delegation.server.jwt.RefreshTokenHandlerInterface
      • getPayload

        public net.sf.json.JSONObject getPayload()
        Specified by:
        getPayload in interface org.oa4mp.delegation.server.jwt.PayloadHandler
      • setRTData

        public void setRTData​(net.sf.json.JSONObject rtData)
      • getSignedPayload

        public RefreshTokenImpl getSignedPayload​(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key)
        Specified by:
        getSignedPayload in interface org.oa4mp.delegation.server.jwt.PayloadHandler
      • getSignedPayload

        public RefreshTokenImpl getSignedPayload​(edu.uiuc.ncsa.security.util.jwk.JSONWebKey key,
                                                 String headerType)
        Specified by:
        getSignedPayload in interface org.oa4mp.delegation.server.jwt.PayloadHandler
      • init

        public void init()
                  throws Throwable
        Specified by:
        init in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Throws:
        Throwable
      • addRequestState

        public void addRequestState​(edu.uiuc.ncsa.security.util.scripting.ScriptRunRequest req)
                             throws Throwable
        Specified by:
        addRequestState in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Throws:
        Throwable
      • handleResponse

        public void handleResponse​(edu.uiuc.ncsa.security.util.scripting.ScriptRunResponse resp)
                            throws Throwable
        Specified by:
        handleResponse in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Overrides:
        handleResponse in class AbstractPayloadHandler
        Throws:
        Throwable
      • checkClaims

        public void checkClaims()
                         throws Throwable
        Specified by:
        checkClaims in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Throws:
        Throwable
      • getSources

        public List<org.oa4mp.delegation.server.server.claims.ClaimSource> getSources()
                                                                               throws Throwable
        Specified by:
        getSources in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Throws:
        Throwable
      • finish

        public void finish​(String execPhase)
                    throws Throwable
        Specified by:
        finish in interface org.oa4mp.delegation.server.jwt.PayloadHandler
        Throws:
        Throwable
      • setAccountingInformation

        public void setAccountingInformation()
        Specified by:
        setAccountingInformation in interface org.oa4mp.delegation.server.jwt.PayloadHandler
      • refreshAccountingInformation

        public void refreshAccountingInformation()
        Specified by:
        refreshAccountingInformation in interface org.oa4mp.delegation.server.jwt.PayloadHandler