@ThreadSafe public class EntityRegistrationAuthorityFilterStage extends BaseIteratingStage<Element>
| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
designatedAuthorities
Registrars which are white/black listed depending on the value of
whitelistingAuthorities. |
private Logger |
log
Class logger.
|
private boolean |
removingEntitylessEntitiesDescriptor
Whether EntitiesDescriptor that do not contain EntityDescriptors should be removed.
|
private boolean |
requiringRegistrationInformation
Whether a descriptor is required to have registration information.
|
private boolean |
whitelistingAuthorities
Whether
designatedAuthorities should be considered a whitelist or a blacklist. |
| Constructor and Description |
|---|
EntityRegistrationAuthorityFilterStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected boolean |
doExecute(Item<Element> item)
Processes a given Item.
|
protected boolean |
filterOutDescriptor(Element descriptor)
Determines if a given EntityDescriptor or EntitiesDecriptor should be filtered out.
|
Collection<String> |
getDesignatedRegistrationAuthorities()
Gets the list of designated registration authority.
|
boolean |
isRemovingEntitylessEntitiesDescriptor()
Gets whether EntitiesDescriptor that do not contain EntityDescriptors should be removed.
|
boolean |
isRequiringRegistrationInformation()
Gets whether a descriptor is required to have registration information.
|
boolean |
isWhitelistingRegistrationAuthorities()
Whether the list of designated registration authority should be considered a whitelist.
|
protected boolean |
processEntitiesDescriptor(Element entitiesDescriptor)
Iterates over all child EntitiesDescriptors and EntityDescriptors to see if they should be removed.
|
void |
setDesignatedRegistrationAuthorities(Collection<String> authorities)
Sets the list of designated registration authority.
|
void |
setRemovingEntitylessEntitiesDescriptor(boolean remove)
Sets whether EntitiesDescriptor that do not contain EntityDescriptors should be removed.
|
void |
setRequiringRegistrationInformation(boolean isRequired)
Sets whether a descriptor is required to have registration information.
|
void |
setWhitelistingRegistrationAuthorities(boolean whitelisting)
Sets whether the list of designated registration authority should be considered a whitelist.
|
doExecuteexecute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate final Logger log
private boolean requiringRegistrationInformation
private Collection<String> designatedAuthorities
whitelistingAuthorities.private boolean whitelistingAuthorities
designatedAuthorities should be considered a whitelist or a blacklist. Default value: falseprivate boolean removingEntitylessEntitiesDescriptor
public EntityRegistrationAuthorityFilterStage()
public boolean isRequiringRegistrationInformation()
public void setRequiringRegistrationInformation(boolean isRequired)
isRequired - whether a descriptor is required to have registration information@Nonnull @NonnullElements @Unmodifiable public Collection<String> getDesignatedRegistrationAuthorities()
public void setDesignatedRegistrationAuthorities(@Nullable@NullableElements Collection<String> authorities)
authorities - list of designated registration authoritypublic boolean isWhitelistingRegistrationAuthorities()
public void setWhitelistingRegistrationAuthorities(boolean whitelisting)
whitelisting - true if the designated registration authority should be considered a whitelist, false
otherwisepublic boolean isRemovingEntitylessEntitiesDescriptor()
public void setRemovingEntitylessEntitiesDescriptor(boolean remove)
remove - whether EntitiesDescriptor that do not contain EntityDescriptors should be removedprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentprotected boolean doExecute(@Nonnull Item<Element> item)
doExecute in class BaseIteratingStage<Element>item - Item on which to operateprotected boolean processEntitiesDescriptor(@Nonnull Element entitiesDescriptor)
isRemovingEntitylessEntitiesDescriptor().entitiesDescriptor - EntitiesDescriptor being processedprotected boolean filterOutDescriptor(@Nonnull Element descriptor)
descriptor - the descriptorCopyright © 1999–2016. All rights reserved.