@Immutable public class ClientInformation extends Object
Related specifications:
Constructor and Description |
---|
ClientInformation(ClientID id,
URI registrationURI,
BearerAccessToken accessToken,
ClientMetadata metadata,
Secret secret,
Date issueDate)
Creates a new client information instance.
|
Modifier and Type | Method and Description |
---|---|
ClientMetadata |
getClientMetadata()
Gets the client metadata.
|
ClientID |
getID()
Gets the client ID.
|
Date |
getIssueDate()
Gets the issue date of the client identifier.
|
static Set<String> |
getRegisteredParameterNames()
Gets the registered client metadata parameter names.
|
BearerAccessToken |
getRegistrationAccessToken()
Gets the registration access token.
|
URI |
getRegistrationURI()
Gets the URI of the client registration.
|
Secret |
getSecret()
Gets the client secret.
|
static ClientInformation |
parse(net.minidev.json.JSONObject jsonObject)
Parses a client information instance from the specified JSON object.
|
net.minidev.json.JSONObject |
toJSONObject()
Returns the JSON object representation of this client information
instance.
|
public ClientInformation(ClientID id, URI registrationURI, BearerAccessToken accessToken, ClientMetadata metadata, Secret secret, Date issueDate)
id
- The client identifier. Must not be
null
.registrationURI
- The client registration URI. Must not be
null
.accessToken
- The client registration access token. Must
not be null
.metadata
- The client metadata. Must not be
null
.secret
- The optional client secret, null
if
not specified.issueDate
- The issue date of the client identifier,
null
if not specified.public static Set<String> getRegisteredParameterNames()
public ClientID getID()
client_id
client
registration parameter.null
if not specified.public URI getRegistrationURI()
registration_client_uri
client registration parameter.null
if not specified.public BearerAccessToken getRegistrationAccessToken()
registration_access_token
client registration parameter.null
if not
specified.public ClientMetadata getClientMetadata()
public Secret getSecret()
client_secret
and
client_secret_expires_at
client registration parameters.null
if not specified.public Date getIssueDate()
client_id_issued_at
client registration parameter.null
if not specified.public net.minidev.json.JSONObject toJSONObject()
public static ClientInformation parse(net.minidev.json.JSONObject jsonObject) throws ParseException
jsonObject
- The JSON object to parse. Must not be
null
.ParseException
- If the JSON object couldn't be parsed to a
client information instance.Copyright © 2014 NimbusDS. All Rights Reserved.