Class SAMLArtifactMetadataIndex
java.lang.Object
org.opensaml.saml.metadata.resolver.index.impl.SAMLArtifactMetadataIndex
- All Implemented Interfaces:
MetadataIndex
An implementation of
MetadataIndex
which indexes entities by their artifact SourceID values.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
An implementation ofMetadataIndexKey
representing a SAML artifact SourceID value.protected static class
An implementation ofMetadataIndexKey
representing a SAML artifact source location value.static class
Entity descriptor indexing function which produces a singleSAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKey
based on the SHA-1 digest of the UTF-8 encoding of the value ofEntityDescriptor.getEntityID()
.static class
Descriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKey
instances based on the values of allSourceID
extension elements present in the descriptor'sRoleDescriptor
s.static class
Descriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceLocationMetadataIndexKey
instances based on the location values of allArtifactResolutionService
elements present in the descriptor'sRoleDescriptor
s. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<Function<EntityDescriptor,
Set<MetadataIndexKey>>> Indexing function instance to use. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SAMLArtifactMetadataIndex
(List<Function<EntityDescriptor, Set<MetadataIndexKey>>> descriptorIndexingFunctions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongenerateKeys
(CriteriaSet criteriaSet) Generate a set of one or moreMetadataIndexKey
instances based on the inputCriteriaSet
.generateKeys
(EntityDescriptor descriptor) Generate a set of one or moreMetadataIndexKey
instances based on the inputEntityDescriptor
.
-
Field Details
-
indexingFunctions
@Nonnull @NonnullElements private List<Function<EntityDescriptor,Set<MetadataIndexKey>>> indexingFunctionsIndexing function instance to use.
-
-
Constructor Details
-
SAMLArtifactMetadataIndex
public SAMLArtifactMetadataIndex()Constructor.The descriptor indexing functions will be:
-
SAMLArtifactMetadataIndex
public SAMLArtifactMetadataIndex(@Nonnull List<Function<EntityDescriptor, Set<MetadataIndexKey>>> descriptorIndexingFunctions) Constructor.- Parameters:
descriptorIndexingFunctions
- the functions used to produce index keys from an entity descriptor
-
-
Method Details
-
generateKeys
Generate a set of one or moreMetadataIndexKey
instances based on the inputEntityDescriptor
.These index key instances reflect the type of indexing performed and "understood" by the implementation, and as such should complement the
MetadataIndexKey
types generated for descriptor lookup viaMetadataIndex.generateKeys(CriteriaSet)
.- Specified by:
generateKeys
in interfaceMetadataIndex
- Parameters:
descriptor
- the entity descriptor set to process- Returns:
- the set of index keys generated from the criteria. May be null or empty, but will not contain null elements.
-
generateKeys
Generate a set of one or moreMetadataIndexKey
instances based on the inputCriteriaSet
.These index key instances reflect the type of indexing performed and "understood" by the implementation, and as such should complement the
MetadataIndexKey
types generated for descriptor indexing viaMetadataIndex.generateKeys(EntityDescriptor)
.- Specified by:
generateKeys
in interfaceMetadataIndex
- Parameters:
criteriaSet
- the criteria set to process- Returns:
- the set of index keys generated from the criteria. May be null or empty, but will not contain null elements.
-