All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nimbusds.openid.connect.provider.spi.tokens.response.TokenResponseContext Maven / Gradle / Ivy

Go to download

SDK for Connect2id Server extensions, such as OpenID Connect claims sources and OAuth 2.0 grant handlers

There is a newer version: 5.8
Show newest version
package com.nimbusds.openid.connect.provider.spi.tokens.response;


import com.nimbusds.openid.connect.provider.spi.claims.CommonClaimsSource;
import com.nimbusds.openid.connect.provider.spi.crypto.JWTSigner;
import net.minidev.json.JSONObject;
import org.checkerframework.checker.nullness.qual.Nullable;

import com.nimbusds.openid.connect.provider.spi.InvocationContext;
import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation;


/**
 * The token response context.
 */
public interface TokenResponseContext extends InvocationContext {
	
	
	/**
	 * If the requesting client is successfully authenticated or identified
	 * at the token endpoint returns its registered information.
	 *
	 * @return The client information, {@code null} if not available.
	 */
	@Nullable OIDCClientInformation getOIDCClientInformation();
	
	
	/**
	 * For a successful token response returns the optional authorisation
	 * data.
	 *
	 * @return The authorisation data, {@code null} if not specified.
	 */
	@Nullable JSONObject getAuthorizationData();


	/**
	 * Returns the OpenID claims source.
	 *
	 * @return The OpenID claims source. Not {@code null}.
	 */
	CommonClaimsSource getCommonClaimsSource();


	/**
	 * Returns an interface for signing JSON Web Tokens (JWT).
	 *
	 * @return The JWT signer.
	 */
	JWTSigner getJWTSigner();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy