Class ClientCredentialsParser

    • Method Detail

      • parseID

        public static ClientID parseID​(net.minidev.json.JSONObject jsonObject)
                                throws ParseException
        Parses a client identifier from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The client identifier.
        Throws:
        ParseException - If parsing failed.
      • parseIDIssueDate

        public static Date parseIDIssueDate​(net.minidev.json.JSONObject jsonObject)
                                     throws ParseException
        Parses a client identifier issue date from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The client identifier issue date, null if not specified.
        Throws:
        ParseException - If parsing failed.
      • parseSecret

        public static Secret parseSecret​(net.minidev.json.JSONObject jsonObject)
                                  throws ParseException
        Parses a client secret from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The client secret, null if not specified.
        Throws:
        ParseException - If parsing failed.
      • parseRegistrationURI

        public static URI parseRegistrationURI​(net.minidev.json.JSONObject jsonObject)
                                        throws ParseException
        Parses a client registration URI from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The client registration URI, null if not specified.
        Throws:
        ParseException - If parsing failed.
      • parseRegistrationAccessToken

        public static BearerAccessToken parseRegistrationAccessToken​(net.minidev.json.JSONObject jsonObject)
                                                              throws ParseException
        Parses a client registration access token from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The client registration access token, null if not specified.
        Throws:
        ParseException - If parsing failed.