public class EndpointMetadataIndex extends Object implements MetadataIndex
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()).
| Modifier and Type | Class and Description |
|---|---|
static class |
EndpointMetadataIndex.DefaultEndpointSelectionPredicate
|
protected static class |
EndpointMetadataIndex.EndpointMetadataIndexKey
An implementation of
MetadataIndexKey representing a single SAML metadata endpoint. |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<Endpoint> |
endpointSelectionPredicate
The predicate which selects which endpoints to index.
|
private org.slf4j.Logger |
log
Logger.
|
| Constructor and Description |
|---|
EndpointMetadataIndex()
Constructor.
|
EndpointMetadataIndex(com.google.common.base.Predicate<Endpoint> endpointPredicate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<MetadataIndexKey> |
generateKeys(CriteriaSet criteriaSet) |
Set<MetadataIndexKey> |
generateKeys(EntityDescriptor descriptor) |
private Set<MetadataIndexKey> |
processCriteria(CriteriaSet criteriaSet,
QName roleType,
Endpoint endpoint)
Process the specified role and endpoint.
|
private Set<String> |
processLocation(CriteriaSet criteriaSet,
String location)
Process the specified location.
|
public EndpointMetadataIndex()
All entity descriptor endpoints will be indexed.
public EndpointMetadataIndex(@Nonnull @ParameterName(name="endpointPredicate") com.google.common.base.Predicate<Endpoint> endpointPredicate)
endpointPredicate - the predicate which selects which endpoints to index@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull EntityDescriptor descriptor)
generateKeys in interface MetadataIndex@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull CriteriaSet criteriaSet)
generateKeys in interface MetadataIndex@Nonnull private Set<MetadataIndexKey> processCriteria(@Nonnull CriteriaSet criteriaSet, @Nonnull QName roleType, @Nonnull Endpoint endpoint)
criteriaSet - the criteria being processedroleType - the type of role containing the endpointendpoint - the endpoint to processCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.