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)Set<MetadataIndexKey>generateKeys(EntityDescriptor descriptor)
-
-
-
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)
- Specified by:
generateKeysin interfaceMetadataIndex
-
generateKeys
@Nullable public Set<MetadataIndexKey> generateKeys(@Nonnull CriteriaSet criteriaSet)
- Specified by:
generateKeysin interfaceMetadataIndex
-
-