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) generateKeys(EntityDescriptor descriptor)
-
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) - Specified by:
generateKeysin interfaceMetadataIndex
-