001package com.nimbusds.openid.connect.provider.spi.tokens.response; 002 003 004import net.minidev.json.JSONObject; 005import org.checkerframework.checker.nullness.qual.Nullable; 006 007import com.nimbusds.openid.connect.provider.spi.InvocationContext; 008import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation; 009 010 011/** 012 * The token response context. 013 */ 014public interface TokenResponseContext extends InvocationContext { 015 016 017 /** 018 * If the requesting client is successfully authenticated or identified 019 * at the token endpoint returns its registered information. 020 * 021 * @return The client information, {@code null} if not available. 022 */ 023 @Nullable OIDCClientInformation getOIDCClientInformation(); 024 025 026 /** 027 * For a successful token response returns the optional authorisation 028 * data. 029 * 030 * @return The authorisation data, {@code null} if not specified. 031 */ 032 @Nullable JSONObject getAuthorizationData(); 033}