Class FunctionMetadataValueResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.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 of
MetadataValueResolver that resolves the value via attached Function.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,Object> The function used for resolving the value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidresolve(ProfileRequestContext criteria) resolveSingle(ProfileRequestContext criteria) voidsetResolverFunction(Function<ProfileRequestContext, Object> function) Set the function used for resolving the value.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
resolverFunction
The function used for resolving the value.
-
-
Constructor Details
-
FunctionMetadataValueResolver
public FunctionMetadataValueResolver()Constructor.
-
-
Method Details
-
setResolverFunction
Set the function used for resolving the value.- Parameters:
function- What to set.
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
resolve
@Nonnull public Iterable<Object> resolve(@Nullable ProfileRequestContext criteria) throws ResolverException - Specified by:
resolvein interfaceResolver<Object,ProfileRequestContext> - Throws:
ResolverException
-
resolveSingle
@Nullable public Object resolveSingle(@Nullable ProfileRequestContext criteria) throws ResolverException - Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext> - Throws:
ResolverException
-