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 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 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,
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 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.
-
-