Class AddRedirectURIHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddRedirectURIHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class AddRedirectURIHandler extends AbstractOIDCAuthenticationRequestActionMessageHandler
A message handler that adds a redirect_uri to the authentication request.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.private BiFunction<javax.servlet.http.HttpServletRequest,ProfileRequestContext,URI>redirectUriCreationStrategyFunction to create a suitable redirect URI from the given servlet request and profile request context.
-
Constructor Summary
Constructors Constructor Description AddRedirectURIHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoInvoke(MessageContext messageContext)voidsetRedirectUriCreationStrategy(BiFunction<javax.servlet.http.HttpServletRequest,ProfileRequestContext,URI> strategy)Set the creation strategy used to compute or lookup a redirect URI.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestActionMessageHandler
adapt, adapt, doPreInvoke, getAuthenticationRequest, getHttpServletRequest, getHttpServletRequestSupplier, getProfileConfiguration, getProviderMetadata, lookupProfileRequestContext, setHttpServletRequestSupplier, setProviderMetadataLookupStrategy, setRelyingPartyContextLookupStrategy
-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, 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.
-
redirectUriCreationStrategy
@NonnullAfterInit private BiFunction<javax.servlet.http.HttpServletRequest,ProfileRequestContext,URI> redirectUriCreationStrategy
Function to create a suitable redirect URI from the given servlet request and profile request context.
-
-
Method Detail
-
setRedirectUriCreationStrategy
public void setRedirectUriCreationStrategy(@Nullable BiFunction<javax.servlet.http.HttpServletRequest,ProfileRequestContext,URI> strategy)Set the creation strategy used to compute or lookup a redirect URI.- Parameters:
strategy- the creation strategy
-
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
-
-