Package com.nimbusds.oauth2.sdk.client
Class ClientCredentialsParser
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.client.ClientCredentialsParser
-
public class ClientCredentialsParser extends Object
Client credentials parser.
-
-
Constructor Summary
Constructors Constructor Description ClientCredentialsParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ClientCredentialsParser
public 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 benull.- 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 benull.- Returns:
- The client identifier issue date,
nullif 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 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.
-
-