Class RoleMetadataIndex
java.lang.Object
org.opensaml.saml.metadata.resolver.index.impl.RoleMetadataIndex
- All Implemented Interfaces:
MetadataIndex
public class RoleMetadataIndex extends Object implements MetadataIndex
An implementation of
MetadataIndex
which indexes entities by their roles.-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
RoleMetadataIndex.RoleMetadataIndexKey
An implementation ofMetadataIndexKey
representing a single SAML metadata role. -
Constructor Summary
Constructors Constructor Description RoleMetadataIndex()
-
Method Summary
Modifier and Type Method Description Set<MetadataIndexKey>
generateKeys(CriteriaSet criteriaSet)
Generate a set of one or moreMetadataIndexKey
instances based on the inputCriteriaSet
.Set<MetadataIndexKey>
generateKeys(EntityDescriptor descriptor)
Generate a set of one or moreMetadataIndexKey
instances based on the inputEntityDescriptor
.
-
Constructor Details
-
RoleMetadataIndex
public RoleMetadataIndex()
-
-
Method Details
-
generateKeys
@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull CriteriaSet criteriaSet)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.
-
generateKeys
@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull EntityDescriptor descriptor)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.
-