001package com.nimbusds.openid.connect.provider.spi;
002
003
004import org.checkerframework.checker.nullness.qual.Nullable;
005
006import com.nimbusds.oauth2.sdk.id.ClientID;
007import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation;
008
009
010/**
011 * Service context for accessing selected Connect2id server components that may
012 * be required to process claims or grant handler requests. The exposed methods
013 * are only available during SPI request processing. Attempting to access these
014 * methods during SPI {@link Lifecycle#init ininitialisation} will produce an
015 * {@link IllegalStateException}.
016 */
017@Deprecated
018public interface ServiceContext {
019        
020
021        /**
022         * Gets the information (metadata) for a registered OAuth 2.0 / OpenID
023         * Connect client.
024         *
025         * <p>Use extensions of {@link InvocationContext} instead.
026         *
027         * @param clientID The client ID. Must not be {@code null}.
028         *
029         * @return The client information, {@code null} if the client wasn't
030         *         found.
031         */
032        @Deprecated
033        @Nullable OIDCClientInformation getOIDCClientInformation(final ClientID clientID);
034}