Class FunctionMetadataValueResolver
- 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.metadata.impl.FunctionMetadataValueResolver
-
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class FunctionMetadataValueResolver extends AbstractIdentifiableInitializableComponent implements MetadataValueResolver
An implementation ofMetadataValueResolverthat resolves the value via attachedFunction.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,Object>resolverFunctionThe function used for resolving the value.
-
Constructor Summary
Constructors Constructor Description FunctionMetadataValueResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()Iterable<Object>resolve(ProfileRequestContext criteria)ObjectresolveSingle(ProfileRequestContext criteria)voidsetResolverFunction(Function<ProfileRequestContext,Object> function)Set the function used for resolving the 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
-
-
-
-
Field Detail
-
resolverFunction
@NonnullAfterInit private Function<ProfileRequestContext,Object> resolverFunction
The function used for resolving the value.
-
-
Method Detail
-
setResolverFunction
public void setResolverFunction(@Nonnull Function<ProfileRequestContext,Object> function)Set the function used for resolving the value.- Parameters:
function- What to set.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
resolve
public Iterable<Object> resolve(@Nonnull ProfileRequestContext criteria) throws ResolverException
- Specified by:
resolvein interfaceResolver<Object,ProfileRequestContext>- Throws:
ResolverException
-
resolveSingle
public Object resolveSingle(@Nonnull ProfileRequestContext criteria) throws ResolverException
- Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext>- Throws:
ResolverException
-
-