com.nimbusds.openid.connect.sdk
Class OIDCClientAddRequest

java.lang.Object
  extended by com.nimbusds.openid.connect.sdk.OIDCClientRegistrationRequest
      extended by com.nimbusds.openid.connect.sdk.OIDCClientAddRequest
All Implemented Interfaces:
Message, Request

public class OIDCClientAddRequest
extends OIDCClientRegistrationRequest

OpenID Connect client add (register) request.

Example HTTP request:

 POST /connect/register HTTP/1.1
 Content-Type: application/json
 Host: server.example.com
 Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJ ...

 {
  "application_type"                : "web",
  "redirect_uris"                   : [ "https://client.example.org/callback", 
                                        "https://client.example.org/callback2" ],
  "client_name"                     : "My Example",
  "client_name#ja-Jpan-JP"          : "クライアント名",
  "logo_url"                        : "https://client.example.org/logo.png",
  "subject_type"                    : "pairwise",
  "sector_identifier_url"           : "https://othercompany.com/file_of_redirect_uris.json",
  "token_endpoint_auth_method"      : "client_secret_basic",
  "x509_url"                        : "https://client.example.org/certs.x509",
  "jwk_url"                         : "https://client.example.org/my_rsa_public_key.jwk",
  "userinfo_encrypted_response_alg" : "RSA1_5",
  "userinfo_encrypted_response_enc" : "A128CBC+HS256"
 }
 

Related specifications:

Version:
$version$ (2013-05-10)
Author:
Vladimir Dzhuvinov

Constructor Summary
OIDCClientAddRequest(Client client)
          Creates a new OpenID Connect client add (register) request.
 
Method Summary
 Client getClientDetails()
          Gets the associated client details.
static OIDCClientAddRequest parse(HTTPRequest httpRequest)
          Parses an OpenID Connect client add (register) request from the specified HTTP POST request.
 HTTPRequest toHTTPRequest(URL url)
          Returns the matching HTTP request.
 
Methods inherited from class com.nimbusds.openid.connect.sdk.OIDCClientRegistrationRequest
getAccessToken, setAccessToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIDCClientAddRequest

public OIDCClientAddRequest(Client client)
Creates a new OpenID Connect client add (register) request.

Parameters:
client - The client details. Must not be null and must specify one or more redirect URIs.
Method Detail

getClientDetails

public Client getClientDetails()
Gets the associated client details.

Returns:
The client details.

toHTTPRequest

public HTTPRequest toHTTPRequest(URL url)
Description copied from interface: Request
Returns the matching HTTP request.

Parameters:
url - The URL of the HTTP endpoint for which the request is intended. Must not be null.
Returns:
The HTTP request.

parse

public static OIDCClientAddRequest parse(HTTPRequest httpRequest)
                                  throws ParseException
Parses an OpenID Connect client add (register) request from the specified HTTP POST request.

Parameters:
httpRequest - The HTTP request. Must not be null.
Returns:
The client add (register) request.
Throws:
ParseException - If the HTTP request couldn't be parsed to a client register request.


Copyright © 2013 NimbusDS. All Rights Reserved.