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 ClientIDparseID(net.minidev.json.JSONObject jsonObject) Parses a client identifier from the specified JSON object.static DateparseIDIssueDate(net.minidev.json.JSONObject jsonObject) Parses a client identifier issue date from the specified JSON object.static BearerAccessTokenparseRegistrationAccessToken(net.minidev.json.JSONObject jsonObject) Parses a client registration access token from the specified JSON object.static URIparseRegistrationURI(net.minidev.json.JSONObject jsonObject) Parses a client registration URI from the specified JSON object.static SecretparseSecret(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,
nullif 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,
nullif 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,
nullif 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,
nullif not specified. - Throws:
ParseException- If parsing failed.
-