com.nimbusds.openid.connect.sdk.rp
Class OIDCClientInformationResponse

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.client.ClientRegistrationResponse
      extended by com.nimbusds.oauth2.sdk.client.ClientInformationResponse
          extended by com.nimbusds.openid.connect.sdk.rp.OIDCClientInformationResponse
All Implemented Interfaces:
Message, Response, SuccessResponse

@Immutable
public final class OIDCClientInformationResponse
extends ClientInformationResponse

OpenID Connect client information response. This class is immutable.

Example HTTP response:

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

 {
  "client_id"                       : "s6BhdRkqt3",
  "client_secret"                   :"ZJYCqe3GGRvdrudKyZS0XhGv_Z45DuKhCUk0gBR1vZk",
  "client_secret_expires_at"        : 1577858400,
  "registration_access_token"       : "this.is.an.access.token.value.ffx83",
  "registration_client_uri"         : "https://server.example.com/connect/register?client_id=s6BhdRkqt3",
  "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_uri"                        : "https://client.example.org/logo.png",
  "subject_type"                    : "pairwise",
  "sector_identifier_uri"           : "https://other.example.net/file_of_redirect_uris.json",
  "jwks_uri"                        : "https://client.example.org/my_public_keys.jwks",
  "userinfo_encrypted_response_alg" : "RSA1_5",
  "userinfo_encrypted_response_enc" : "A128CBC-HS256",
  "contacts"                        : ["[email protected]", "[email protected]"],
  "request_uris"                    : ["https://client.example.org/rf.txt#qpXaRLh_n93TTR9F252ValdatUQvQiJi5BDub2BeznA"]
 }
 

Related specifications:

Author:
Vladimir Dzhuvinov

Constructor Summary
OIDCClientInformationResponse(OIDCClientInformation clientInfo)
          Creates a new OpenID Connect client information response.
 
Method Summary
 OIDCClientInformation getOIDCClientInformation()
          Gets the OpenID Connect client information.
static OIDCClientInformationResponse parse(HTTPResponse httpResponse)
          Parses an OpenID Connect client information response from the specified HTTP response.
 
Methods inherited from class com.nimbusds.oauth2.sdk.client.ClientInformationResponse
getClientInformation, toHTTPResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIDCClientInformationResponse

public OIDCClientInformationResponse(OIDCClientInformation clientInfo)
Creates a new OpenID Connect client information response.

Parameters:
clientInfo - The OpenID Connect client information. Must not be null.
Method Detail

getOIDCClientInformation

public OIDCClientInformation getOIDCClientInformation()
Gets the OpenID Connect client information.

Returns:
The OpenID Connect client information.

parse

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

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


Copyright © 2013 NimbusDS. All Rights Reserved.