Class ArrayMetadataValueResolver
- 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.ArrayMetadataValueResolver
-
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class ArrayMetadataValueResolver extends AbstractIdentifiableInitializableComponent implements MetadataValueResolver
An implementation toMetadataValueResolverthat contains an array of otherMetadataValueResolvers.
-
-
Field Summary
Fields Modifier and Type Field Description private List<MetadataValueResolver>embeddedResolversThe list of resolvers whose value is added to the result of this resolver.private org.slf4j.LoggerlogClass logger.private StringobjectNameThe name of the JSON object, can be null to return only values of embedded resolvers.
-
Constructor Summary
Constructors Constructor Description ArrayMetadataValueResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()Iterable<Object>resolve(ProfileRequestContext profileRequestContext)ObjectresolveSingle(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.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
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
objectName
private String objectName
The name of the JSON object, can be null to return only values of embedded resolvers.
-
embeddedResolvers
private List<MetadataValueResolver> embeddedResolvers
The list of resolvers whose value is added to the result of this resolver.
-
-
Method Detail
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
setEmbeddedResolvers
public void setEmbeddedResolvers(List<MetadataValueResolver> resolvers)
Set the list of resolvers whose value is added to the result of this resolver.- Parameters:
resolvers- What to set.
-
setObjectName
public void setObjectName(String name)
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
-
-