@Immutable public class ClientInformation extends java.lang.Object
Related specifications:
Constructor and Description |
---|
ClientInformation(ClientID id,
java.util.Date issueDate,
ClientMetadata metadata,
Secret secret)
Creates a new client information instance.
|
ClientInformation(ClientID id,
java.util.Date issueDate,
ClientMetadata metadata,
Secret secret,
java.net.URI registrationURI,
BearerAccessToken accessToken)
Creates a new client information instance permitting dynamic client
registration management.
|
Modifier and Type | Method and Description |
---|---|
ClientID |
getID()
Gets the client identifier.
|
java.util.Date |
getIDIssueDate()
Gets the issue date of the client identifier.
|
ClientMetadata |
getMetadata()
Gets the client metadata.
|
static java.util.Set<java.lang.String> |
getRegisteredParameterNames()
Gets the registered client metadata parameter names.
|
BearerAccessToken |
getRegistrationAccessToken()
Gets the registration access token.
|
java.net.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, java.util.Date issueDate, ClientMetadata metadata, Secret secret)
id
- The client identifier. Must not be
null
.issueDate
- The issue date of the client identifier,
null
if not specified.metadata
- The client metadata. Must not be
null
.secret
- The optional client secret, null
if
not specified.public ClientInformation(ClientID id, java.util.Date issueDate, ClientMetadata metadata, Secret secret, java.net.URI registrationURI, BearerAccessToken accessToken)
id
- The client identifier. Must not be
null
.issueDate
- The issue date of the client identifier,
null
if not specified.metadata
- The client metadata. Must not be
null
.secret
- The optional client secret, null
if
not specified.registrationURI
- The client registration URI, null
if
not specified.accessToken
- The client registration access token,
null
if not specified.public static java.util.Set<java.lang.String> getRegisteredParameterNames()
public ClientID getID()
client_id
client registration parameter.public java.util.Date getIDIssueDate()
client_id_issued_at
client registration parameter.null
if not specified.public ClientMetadata getMetadata()
public Secret getSecret()
client_secret
and
client_secret_expires_at
client registration parameters.null
if not specified.public java.net.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 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 Connect2id Ltd.. All Rights Reserved.