Class DiscoveryProfileRequestFunction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.authn.proxy.impl.DiscoveryProfileRequestFunction
-
- All Implemented Interfaces:
Function<Pair<RequestContext,ProfileRequestContext>,String>,Component,DestructableComponent,InitializableComponent
@ThreadSafe public class DiscoveryProfileRequestFunction extends AbstractInitializableComponent implements Function<Pair<RequestContext,ProfileRequestContext>,String>
AFunctionthat produces a discovery request URL using the protocol defined in https://wiki.oasis-open.org/security/IdpDiscoSvcProtonProfileSince there is no upstream "relying party" yet, the identity of the system is derived from the currently in-effect entityID that will be used to respond to the downstream relying party.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,String>discoveryURLLookupStrategyLookup strategy for determining the "base" discovery URL.private EscaperescaperURL query parameter escaper.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,RelyingPartyContext>relyingPartyContextLookupStrategyLookup strategy for locatingRelyingPartyContext.
-
Constructor Summary
Constructors Constructor Description DiscoveryProfileRequestFunction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(Pair<RequestContext,ProfileRequestContext> input)protected voiddoInitialize()voidsetDiscoveryURLLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the lookup strategy for the "base" discovery service URL to use.voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,RelyingPartyContext> strategy)Set the lookup strategy for theRelyingPartyContext.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
escaper
@Nonnull private Escaper escaper
URL query parameter escaper.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
Lookup strategy for locatingRelyingPartyContext.
-
discoveryURLLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,String> discoveryURLLookupStrategy
Lookup strategy for determining the "base" discovery URL.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,RelyingPartyContext> strategy)Set the lookup strategy for theRelyingPartyContext.- Parameters:
strategy- lookup strategy
-
setDiscoveryURLLookupStrategy
public void setDiscoveryURLLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the lookup strategy for the "base" discovery service URL to use.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
apply
@Nullable public String apply(@Nonnull Pair<RequestContext,ProfileRequestContext> input)
- Specified by:
applyin interfaceFunction<Pair<RequestContext,ProfileRequestContext>,String>
-
-