com.nimbusds.openid.connect.sdk
Class OIDCClientDetailsResponse

java.lang.Object
  extended by com.nimbusds.openid.connect.sdk.OIDCClientRegistrationResponse
      extended by com.nimbusds.openid.connect.sdk.OIDCClientDetailsResponse
All Implemented Interfaces:
Message, Response, SuccessResponse

@Immutable
public class OIDCClientDetailsResponse
extends OIDCClientRegistrationResponse
implements SuccessResponse

OpenID Connect client details response. This class is immutable.

Example HTTP response:

 HTTP/1.1 200 OK
 Content-Type: application/json
 Cache-Control: no-store

 {
  "client_id"                       : "s6BhdRkqt3",
  "client_secret"                   : "ZJYCqe3GGRvdrudKyZS0XhGv_Z45DuKhCUk0gBR1vZk",
  "expires_at"                      : 1577858400,
  "registration_access_token"       : "this.is.an.access.token.value.ffx83",
  "registration_access_url"         : "https://server.example.com/connect/register",
  "token_endpoint_auth_method"      : "client_secret_basic",
  "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",
  "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:

Author:
Vladimir Dzhuvinov

Constructor Summary
OIDCClientDetailsResponse(ClientDetails client)
          Creates a new OpenID Connect client details response.
 
Method Summary
 ClientDetails getClientDetails()
          Gets the associated client details.
static OIDCClientDetailsResponse parse(HTTPResponse httpResponse)
          Parses an OpenID Connect client details response from the specified HTTP response.
 HTTPResponse toHTTPResponse()
          Returns the matching HTTP response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIDCClientDetailsResponse

public OIDCClientDetailsResponse(ClientDetails client)
Creates a new OpenID Connect client details response.

Parameters:
client - The client details. Must not be null.
Method Detail

getClientDetails

public ClientDetails getClientDetails()
Gets the associated client details.

Returns:
The client details.

toHTTPResponse

public HTTPResponse toHTTPResponse()
Description copied from interface: Response
Returns the matching HTTP response.

Specified by:
toHTTPResponse in interface Response
Returns:
The HTTP response.

parse

public static OIDCClientDetailsResponse parse(HTTPResponse httpResponse)
                                       throws ParseException
Parses an OpenID Connect client details response from the specified HTTP response.

Parameters:
httpResponse - The HTTP response. Must not be null.
Returns:
The OpenID Connect client details response.
Throws:
ParseException - If the HTTP response couldn't be parsed to an OpenID Connect client details response.


Copyright © 2013 NimbusDS. All Rights Reserved.