Class SAMLArtifactMetadataIndex
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.index.impl.SAMLArtifactMetadataIndex
-
- All Implemented Interfaces:
MetadataIndex
public class SAMLArtifactMetadataIndex extends Object implements MetadataIndex
An implementation ofMetadataIndexwhich indexes entities by their artifact SourceID values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKeyAn implementation ofMetadataIndexKeyrepresenting a SAML artifact SourceID value.protected static classSAMLArtifactMetadataIndex.ArtifactSourceLocationMetadataIndexKeyAn implementation ofMetadataIndexKeyrepresenting a SAML artifact source location value.static classSAMLArtifactMetadataIndex.EntityIDToSHA1SourceIDIndexingFunctionEntity descriptor indexing function which produces a singleSAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKeybased on the SHA-1 digest of the UTF-8 encoding of the value ofEntityDescriptor.getEntityID().static classSAMLArtifactMetadataIndex.SourceIDExtensionIndexingFunctionDescriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceIDMetadataIndexKeyinstances based on the values of allSourceIDextension elements present in the descriptor'sRoleDescriptors.static classSAMLArtifactMetadataIndex.SourceLocationIndexingFunctionDescriptor indexing function which produces 0 to manySAMLArtifactMetadataIndex.ArtifactSourceLocationMetadataIndexKeyinstances based on the location values of allArtifactResolutionServiceelements present in the descriptor'sRoleDescriptors.
-
Field Summary
Fields Modifier and Type Field Description private List<Function<EntityDescriptor,Set<MetadataIndexKey>>>indexingFunctionsIndexing function instance to use.
-
Constructor Summary
Constructors Constructor Description SAMLArtifactMetadataIndex()Constructor.SAMLArtifactMetadataIndex(List<Function<EntityDescriptor,Set<MetadataIndexKey>>> descriptorIndexingFunctions)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<MetadataIndexKey>generateKeys(CriteriaSet criteriaSet)Generate a set of one or moreMetadataIndexKeyinstances based on the inputCriteriaSet.Set<MetadataIndexKey>generateKeys(EntityDescriptor descriptor)Generate a set of one or moreMetadataIndexKeyinstances based on the inputEntityDescriptor.
-
-
-
Field Detail
-
indexingFunctions
@Nonnull @NonnullElements private List<Function<EntityDescriptor,Set<MetadataIndexKey>>> indexingFunctions
Indexing function instance to use.
-
-
Constructor Detail
-
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 Detail
-
generateKeys
@Nullable 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.
-
generateKeys
@Nullable public Set<MetadataIndexKey> generateKeys(@Nonnull CriteriaSet criteriaSet)
Generate a set of one or moreMetadataIndexKeyinstances 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
MetadataIndexKeytypes generated for descriptor indexing viaMetadataIndex.generateKeys(EntityDescriptor).- Specified by:
generateKeysin 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.
-
-