com.nimbusds.openid.connect.provider.spi.tokens.TokenEncoderContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c2id-server-sdk Show documentation
Show all versions of c2id-server-sdk Show documentation
SDK for Connect2id Server extensions, such as OpenID Connect claims
sources and OAuth 2.0 grant handlers
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();
}
}