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

com.nimbusds.openid.connect.provider.spi.tokens.TokenEncoderContext 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;


import org.checkerframework.checker.nullness.qual.Nullable;

import com.nimbusds.openid.connect.provider.spi.claims.ClaimsSource;
import com.nimbusds.openid.connect.provider.spi.claims.CommonClaimsSource;
import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation;


/**
 * Token encoder context.
 */
public interface TokenEncoderContext extends TokenCodecContext {
	
	
	/**
	 * Returns the registered client information for the {@code client_id}.
	 *
	 * @return The registered client information, {@code null} if not
	 *         available (in direct authorisation store web API calls).
	 */
	@Nullable OIDCClientInformation getOIDCClientInformation();
	
	
	
	/**
	 * Returns the OpenID claims source.
	 *
	 * @return The OpenID claims source. Not {@code null}.
	 */
	@Deprecated
	ClaimsSource getClaimsSource();
	
	
	/**
	 * Returns the OpenID claims source.
	 *
	 * @return The OpenID claims source. Not {@code null}.
	 */
	default CommonClaimsSource getCommonClaimsSource() {
		return getClaimsSource();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy