Class EndpointMetadataIndex
java.lang.Object
org.opensaml.saml.metadata.resolver.index.impl.EndpointMetadataIndex
- All Implemented Interfaces:
MetadataIndex
An implementation of
MetadataIndex which indexes entities by their role endpoint locations.
The indexed endpoint location keys are scoped by the containing RoleDescriptor type, Endpoint type,
and whether or not the endpoint value was a standard location (Endpoint.getLocation())
or a response location (Endpoint.getResponseLocation()).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classAn implementation ofMetadataIndexKeyrepresenting a single SAML metadata endpoint. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe predicate which selects which endpoints to index.private org.slf4j.LoggerLogger. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.EndpointMetadataIndex(Predicate<Endpoint> endpointPredicate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongenerateKeys(CriteriaSet criteriaSet) generateKeys(EntityDescriptor descriptor) private Set<MetadataIndexKey>processCriteria(CriteriaSet criteriaSet, QName roleType, Endpoint endpoint) Process the specified role and endpoint.processLocation(CriteriaSet criteriaSet, String location) Process the specified location.
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
endpointSelectionPredicate
The predicate which selects which endpoints to index.
-
-
Constructor Details
-
EndpointMetadataIndex
public EndpointMetadataIndex()Constructor.All entity descriptor endpoints will be indexed.
-
EndpointMetadataIndex
public EndpointMetadataIndex(@Nonnull @ParameterName(name="endpointPredicate") Predicate<Endpoint> endpointPredicate) Constructor.- Parameters:
endpointPredicate- the predicate which selects which endpoints to index
-
-
Method Details
-
generateKeys
@Nullable @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull EntityDescriptor descriptor) - Specified by:
generateKeysin interfaceMetadataIndex
-