|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.client.ClientUpdateRequest
@Immutable public class ClientUpdateRequest
Client registration request. This class is immutable.
Example HTTP request:
PUT /register/s6BhdRkqt3 HTTP/1.1 Accept: application/json Host: server.example.com Authorization: Bearer reg-23410913-abewfq.123483 { "client_id" :"s6BhdRkqt3", "client_secret" : "cf136dc3c1fc93f31185e5885805d", "redirect_uris" : ["https://client.example.org/callback", "https://client.example.org/alt"], "scope" : "read write dolphin", "grant_types" : ["authorization_code", "refresh_token"] "token_endpoint_auth_method" : "client_secret_basic", "jwks_uri" : "https://client.example.org/my_public_keys.jwks" "client_name" : "My New Example", "client_name#fr" : "Mon Nouvel Exemple", "logo_uri" : "https://client.example.org/newlogo.png" "logo_uri#fr" : "https://client.example.org/fr/newlogo.png" }
Related specifications:
Constructor Summary | |
---|---|
ClientUpdateRequest(URL uri,
ClientID id,
BearerAccessToken accessToken,
ClientMetadata metadata,
Secret secret)
Creates a new client update request. |
Method Summary | |
---|---|
ClientID |
getClientID()
Gets the client ID. |
ClientMetadata |
getClientMetadata()
Gets the associated client metadata. |
Secret |
getClientSecret()
Gets the client secret. |
static ClientUpdateRequest |
parse(HTTPRequest httpRequest)
Parses a client update request from the specified HTTP PUT request. |
HTTPRequest |
toHTTPRequest()
Returns the matching HTTP request. |
Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest |
---|
getAccessToken |
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest |
---|
getURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientUpdateRequest(URL uri, ClientID id, BearerAccessToken accessToken, ClientMetadata metadata, Secret secret)
uri
- The URI of the client update endpoint. May be
null
if the toHTTPRequest()
method will not be used.accessToken
- The client registration access token. Must not be
null
.metadata
- The client metadata. Must not be null
and
must specify one or more redirect URIs.secret
- The optional client secret, null
if not
specified.Method Detail |
---|
public ClientID getClientID()
client_id
client
registration parameter.
null
if not specified.public ClientMetadata getClientMetadata()
public Secret getClientSecret()
client_secret
registration parameters.
null
if not specified.public HTTPRequest toHTTPRequest() throws SerializeException
Request
SerializeException
- If the request message couldn't be
serialised to an HTTP request.public static ClientUpdateRequest parse(HTTPRequest httpRequest) throws ParseException
httpRequest
- The HTTP request. Must not be null
.
ParseException
- If the HTTP request couldn't be parsed to a
client update request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |