Class OIDCMetadataLookupHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.idp.plugin.oidc.op.profile.impl.OIDCMetadataLookupHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
Handler for inbound OIDC protocol messages that attempts to locate OIDC metadata for a rp, and attaches it with a
OIDCMetadataContext as a child of a pre-existing instance of MessageContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,ClientID> Strategy used to obtain the client id value for authorize/token request.private ClientInformationResolverResolver used to look up OIDC client information.private final org.slf4j.LoggerLogger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoInvoke(MessageContext messageContext) voidsetClientIDLookupStrategy(Function<MessageContext, ClientID> strategy) Set the strategy used to locate the client id of the request.voidSet theClientInformationResolverto use.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logLogger. -
clientResolver
Resolver used to look up OIDC client information. -
clientIDLookupStrategy
Strategy used to obtain the client id value for authorize/token request.
-
-
Constructor Details
-
OIDCMetadataLookupHandler
public OIDCMetadataLookupHandler()Constructor.
-
-
Method Details
-
setClientIDLookupStrategy
Set the strategy used to locate the client id of the request.- Parameters:
strategy- lookup strategy
-
setClientInformationResolver
Set theClientInformationResolverto use.- Parameters:
resolver- The resolver to use.
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-