Class OIDCMetadataLookupHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.OIDCMetadataLookupHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class OIDCMetadataLookupHandler extends AbstractMessageHandler
Handler for inbound OIDC protocol messages that attempts to locate OIDC metadata for a rp, and attaches it with aOIDCMetadataContextas a child of a pre-existing instance ofMessageContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>clientIDLookupStrategyStrategy used to obtain the client id value for authorize/token request.private net.shibboleth.oidc.metadata.ClientInformationResolverclientResolverResolver used to look up OIDC client information.private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description OIDCMetadataLookupHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)voidsetClientIDLookupStrategy(Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> strategy)Set the strategy used to locate the client id of the request.voidsetClientInformationResolver(net.shibboleth.oidc.metadata.ClientInformationResolver resolver)Set theClientInformationResolverto use.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Logger.
-
clientResolver
@NonnullAfterInit private net.shibboleth.oidc.metadata.ClientInformationResolver clientResolver
Resolver used to look up OIDC client information.
-
clientIDLookupStrategy
@Nonnull private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> clientIDLookupStrategy
Strategy used to obtain the client id value for authorize/token request.
-
-
Method Detail
-
setClientIDLookupStrategy
public void setClientIDLookupStrategy(@Nonnull Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> strategy)Set the strategy used to locate the client id of the request.- Parameters:
strategy- lookup strategy
-
setClientInformationResolver
public void setClientInformationResolver(@Nonnull net.shibboleth.oidc.metadata.ClientInformationResolver resolver)Set theClientInformationResolverto use.- Parameters:
resolver- The resolver to use.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-