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