Class RFC7523Utils

    • Constructor Detail

      • RFC7523Utils

        public RFC7523Utils()
    • Method Detail

      • doPost

        public static String doPost​(edu.uiuc.ncsa.security.servlet.ServiceClient serviceClient,
                                    Client oa2Client,
                                    URI accessTokenEndpoint,
                                    String keyID,
                                    Map parameters)
        Does a POST to the endpoint using the client's key.
        Parameters:
        serviceClient -
        oa2Client -
        accessTokenEndpoint -
        parameters -
        Returns:
      • createBasicJWT

        protected static net.sf.json.JSONObject createBasicJWT​(Client client)
        Every basic JWT has the same structure. Create it here.
        Parameters:
        client -
        Returns:
      • findKey

        protected static edu.uiuc.ncsa.security.util.jwk.JSONWebKey findKey​(Client client,
                                                                            String kid)
      • doTokenRequest

        public static String doTokenRequest​(edu.uiuc.ncsa.security.servlet.ServiceClient serviceClient,
                                            Client client,
                                            URI tokenEndpoint,
                                            String kid,
                                            Map parameters)
        Creates an authorization grant for the client. Note that clients must have a previous trust relationship to do this, or it will fail.
        Parameters:
        serviceClient -
        client -
        parameters -