Class ProfileResponderIdLookupFunction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.plugin.oidc.op.profile.context.navigate.ProfileResponderIdLookupFunction
-
- All Implemented Interfaces:
Function<ProfileRequestContext,String>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,ContextDataLookupFunction<ProfileRequestContext,String>
public class ProfileResponderIdLookupFunction extends AbstractIdentifiableInitializableComponent implements ContextDataLookupFunction<ProfileRequestContext,String>
A function that returns responder id based on profile.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdefaultResponderDefault responder value, usually entity id.private org.slf4j.LoggerlogClass logger.private Map<String,String>profileRespondersMapping from profile id to responder value.
-
Constructor Summary
Constructors Constructor Description ProfileResponderIdLookupFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(ProfileRequestContext input)protected voiddoInitialize()voidsetDefaultResponder(String resp)Set default responder value, usually entity id.voidsetProfileResponders(Map<net.shibboleth.idp.profile.config.ProfileConfiguration,String> resp)Set mapping from profile to responder value.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
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.IdentifiedComponent
getId
-
-
-
-
Method Detail
-
setDefaultResponder
public void setDefaultResponder(@Nonnull String resp)Set default responder value, usually entity id.- Parameters:
resp- default responder value, usually entity id
-
setProfileResponders
public void setProfileResponders(@Nullable Map<net.shibboleth.idp.profile.config.ProfileConfiguration,String> resp)Set mapping from profile to responder value.- Parameters:
resp- mapping from profile to responder value
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
apply
@Nullable public String apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,String>
-
-