Package com.nimbusds.oauth2.sdk.client
Class ClientCredentialsParser
java.lang.Object
com.nimbusds.oauth2.sdk.client.ClientCredentialsParser
Client credentials parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientID
parseID
(net.minidev.json.JSONObject jsonObject) Parses a client identifier from the specified JSON object.static Date
parseIDIssueDate
(net.minidev.json.JSONObject jsonObject) Parses a client identifier issue date from the specified JSON object.static BearerAccessToken
parseRegistrationAccessToken
(net.minidev.json.JSONObject jsonObject) Parses a client registration access token from the specified JSON object.static URI
parseRegistrationURI
(net.minidev.json.JSONObject jsonObject) Parses a client registration URI from the specified JSON object.static Secret
parseSecret
(net.minidev.json.JSONObject jsonObject) Parses a client secret from the specified JSON object.
-
Constructor Details
-
ClientCredentialsParser
public ClientCredentialsParser()
-
-
Method Details
-
parseID
Parses a client identifier from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The client identifier.
- Throws:
ParseException
- If parsing failed.
-
parseIDIssueDate
Parses a client identifier issue date from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The client identifier issue date,
null
if not specified. - Throws:
ParseException
- If parsing failed.
-
parseSecret
Parses a client secret from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- 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 benull
.- 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 benull
.- Returns:
- The client registration access token,
null
if not specified. - Throws:
ParseException
- If parsing failed.
-