OIDCClientInformation@Immutable public class ClientInformation extends Object
Related specifications:
| Constructor | Description |
|---|---|
ClientInformation(ClientID id,
Date issueDate,
ClientMetadata metadata,
Secret secret) |
Creates a new client information instance.
|
ClientInformation(ClientID id,
Date issueDate,
ClientMetadata metadata,
Secret secret,
URI registrationURI,
BearerAccessToken accessToken) |
Creates a new client information instance permitting dynamic client
registration management.
|
| Modifier and Type | Method | Description |
|---|---|---|
ClientID |
getID() |
Gets the client identifier.
|
Date |
getIDIssueDate() |
Gets the issue date of the client identifier.
|
ClientMetadata |
getMetadata() |
Gets the client metadata.
|
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.
|
ClientType |
inferClientType() |
Infers the client type.
|
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, 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, Date issueDate, ClientMetadata metadata, Secret secret, 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 Set<String> getRegisteredParameterNames()
public ClientID getID()
client_id
client registration parameter.public 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 ClientType inferClientType()
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 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 © 2018 Connect2id Ltd.. All rights reserved.