Class DiscoveryProfileRequestFunction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.authn.proxy.impl.DiscoveryProfileRequestFunction
-
- All Implemented Interfaces:
Function<net.shibboleth.utilities.java.support.collection.Pair<RequestContext,org.opensaml.profile.context.ProfileRequestContext>,String>,net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent
@ThreadSafe public class DiscoveryProfileRequestFunction extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements Function<net.shibboleth.utilities.java.support.collection.Pair<RequestContext,org.opensaml.profile.context.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<org.opensaml.profile.context.ProfileRequestContext,String>discoveryURLLookupStrategyLookup strategy for determining the "base" discovery URL.private EscaperescaperURL query parameter escaper.private org.slf4j.LoggerlogClass logger.private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.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(net.shibboleth.utilities.java.support.collection.Pair<RequestContext,org.opensaml.profile.context.ProfileRequestContext> input)protected voiddoInitialize()voidsetDiscoveryURLLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the lookup strategy for the "base" discovery service URL to use.voidsetRelyingPartyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.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<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
Lookup strategy for locatingRelyingPartyContext.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the lookup strategy for theRelyingPartyContext.- Parameters:
strategy- lookup strategy
-
setDiscoveryURLLookupStrategy
public void setDiscoveryURLLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)Set the lookup strategy for the "base" discovery service URL to use.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.utilities.java.support.component.AbstractInitializableComponent- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
apply
@Nullable public String apply(@Nonnull net.shibboleth.utilities.java.support.collection.Pair<RequestContext,org.opensaml.profile.context.ProfileRequestContext> input)
- Specified by:
applyin interfaceFunction<net.shibboleth.utilities.java.support.collection.Pair<RequestContext,org.opensaml.profile.context.ProfileRequestContext>,String>
-
-