Class TokenAwareServer

  • All Implemented Interfaces:
    org.oa4mp.delegation.common.services.AddressableServer, org.oa4mp.delegation.common.services.DoubleDispatchServer, org.oa4mp.delegation.common.services.Server
    Direct Known Subclasses:
    ATServer2, RFC6749_4_4Server, RFC7009Server2, RFC7523Server, RFC7662Server2, RFC8623Server, RTServer2

    public abstract class TokenAwareServer
    extends ASImpl
    Since the processing of claims is to be supported for refresh tokens as well, the machinery for it should be available generally to access and refresh token servers.

    Created by Jeff Gaynor
    on 9/13/17 at 2:37 PM

    • Constructor Detail

      • TokenAwareServer

        public TokenAwareServer​(edu.uiuc.ncsa.security.servlet.ServiceClient serviceClient,
                                URI issuer,
                                String wellKnown,
                                boolean serverOIDCEnabled)
    • Method Detail

      • getServiceClient

        public edu.uiuc.ncsa.security.servlet.ServiceClient getServiceClient()
      • getJsonWebKeys

        public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getJsonWebKeys()
      • getAndCheckResponse

        protected net.sf.json.JSONObject getAndCheckResponse​(String response)
      • getAndCheckIDToken

        protected org.oa4mp.delegation.common.token.impl.IDTokenImpl getAndCheckIDToken​(net.sf.json.JSONObject jsonObject,
                                                                                        BasicRequest atRequest)
        Takes the response JSON object that contains the ID token and the request and checks that it is a valid ID Token for this client. Result is the actual ID token (also a JSON Object).
        Parameters:
        jsonObject -
        atRequest -
        Returns:
      • getTokenEndpoint

        public URI getTokenEndpoint()
      • setTokenEndpoint

        public void setTokenEndpoint​(URI tokenEndpoint)