Class TokenAwareServer

    • 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 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)