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