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(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) |
Set<MetadataIndexKey> |
generateKeys(EntityDescriptor descriptor) |
private Set<MetadataIndexKey> |
processCriteria(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet,
QName roleType,
Endpoint endpoint)
Process the specified role and endpoint.
|
private Set<String> |
processLocation(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet,
String location)
Process the specified location.
|
public EndpointMetadataIndex()
All entity descriptor endpoints will be indexed.
@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull EntityDescriptor descriptor)
generateKeys
in interface MetadataIndex
@Nullable @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> generateKeys(@Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
generateKeys
in interface MetadataIndex
@Nonnull private Set<MetadataIndexKey> processCriteria(@Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet, @Nonnull QName roleType, @Nonnull Endpoint endpoint)
criteriaSet
- the criteria being processedroleType
- the type of role containing the endpointendpoint
- the endpoint to process@Nonnull private Set<String> processLocation(@Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet, @Nonnull String location)
criteriaSet
- the criteria being processedlocation
- the location to processCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.