Class ArrayMetadataValueResolver
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.ArrayMetadataValueResolver
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class ArrayMetadataValueResolver
extends AbstractIdentifiableInitializableComponent
implements MetadataValueResolver
An implementation to
MetadataValueResolver that contains an array of other MetadataValueResolvers.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<MetadataValueResolver>The list of resolvers whose value is added to the result of this resolver.private final org.slf4j.LoggerClass logger.private StringThe name of the JSON object, can be null to return only values of embedded resolvers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidresolve(ProfileRequestContext profileRequestContext) resolveSingle(ProfileRequestContext profileRequestContext) voidsetEmbeddedResolvers(List<MetadataValueResolver> resolvers) Set the list of resolvers whose value is added to the result of this resolver.voidsetObjectName(String name) Set the name of the JSON object, can be null to return only values of embedded resolvers.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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
objectName
The name of the JSON object, can be null to return only values of embedded resolvers. -
embeddedResolvers
The list of resolvers whose value is added to the result of this resolver.
-
-
Constructor Details
-
ArrayMetadataValueResolver
public ArrayMetadataValueResolver()Constructor.
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
setEmbeddedResolvers
Set the list of resolvers whose value is added to the result of this resolver.- Parameters:
resolvers- What to set.
-
setObjectName
Set the name of the JSON object, can be null to return only values of embedded resolvers.- Parameters:
name- What to set.
-
resolve
public Iterable<Object> resolve(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException - Specified by:
resolvein interfaceResolver<Object,ProfileRequestContext> - Throws:
ResolverException
-
resolveSingle
public Object resolveSingle(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException - Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext> - Throws:
ResolverException
-