|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.oauth2.sdk.client.ClientInformation
@Immutable public class ClientInformation
Client information. Encapsulates the registration and metadata details of an OAuth 2.0 client:
This class is immutable.
Related specifications:
Constructor Summary | |
---|---|
ClientInformation(ClientID id,
URL registrationURI,
BearerAccessToken accessToken,
ClientMetadata metadata,
Secret secret,
Date issueDate)
Creates a new client information instance. |
Method Summary | |
---|---|
ClientMetadata |
getClientMetadata()
Gets the client metadata. |
ClientID |
getID()
Gets the client ID. |
Date |
getIssueDate()
Gets the issue date of the client identifier. |
BearerAccessToken |
getRegistrationAccessToken()
Gets the registration access token. |
URL |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientInformation(ClientID id, URL 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.Method Detail |
---|
public ClientID getID()
client_id
client
registration parameter.
null
if not specified.public URL 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |