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 classAn implementation ofMetadataIndexKeyrepresenting a SAML artifact SourceID value.protected static classAn implementation ofMetadataIndexKeyrepresenting a SAML artifact source location value.static classEntity descriptor indexing function which produces a singleSAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKeybased on the SHA-1 digest of the UTF-8 encoding of the value ofEntityDescriptor.getEntityID().static classDescriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKeyinstances based on the values of allSourceIDextension elements present in the descriptor'sRoleDescriptors.static classDescriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceLocationMetadataIndexKeyinstances based on the location values of allArtifactResolutionServiceelements present in the descriptor'sRoleDescriptors. -
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 moreMetadataIndexKeyinstances based on the inputCriteriaSet.generateKeys(EntityDescriptor descriptor) Generate a set of one or moreMetadataIndexKeyinstances based on the inputEntityDescriptor.
-
Field Details
-
indexingFunctions
Indexing 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
@Nullable @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull EntityDescriptor descriptor) Generate a set of one or moreMetadataIndexKeyinstances 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
MetadataIndexKeytypes generated for descriptor lookup viaMetadataIndex.generateKeys(CriteriaSet).- Specified by:
generateKeysin 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.
-