|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<ItemType>
net.shibboleth.metadata.pipeline.BaseIteratingStage<DomElementItem>
net.shibboleth.metadata.dom.saml.EntityRegistrationAuthorityFilterStage
public class EntityRegistrationAuthorityFilterStage
A pipeline stage that will filter EntityDescriptor or EntityDescriptors based on their registration authority.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
EntityRegistrationAuthorityFilterStage()
|
|
| Method Summary | |
|---|---|
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
protected boolean |
filterOutDescriptor(Element descriptor)
Determines if a given 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 EntityDescriptor 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. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseIteratingStage |
|---|
doExecute |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute |
| Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent |
|---|
doInitialize, equals, getId, getInitializationInstant, hashCode, initialize, isInitialized, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.metadata.pipeline.Component |
|---|
getId, getInitializationInstant, initialize, isInitialized |
| Field Detail |
|---|
private 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: false
private boolean removingEntitylessEntitiesDescriptor
| Constructor Detail |
|---|
public EntityRegistrationAuthorityFilterStage()
| Method Detail |
|---|
public boolean isRequiringRegistrationInformation()
public void setRequiringRegistrationInformation(boolean isRequired)
isRequired - whether a descriptor is required to have registration informationpublic Collection<String> getDesignatedRegistrationAuthorities()
public void setDesignatedRegistrationAuthorities(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 boolean doExecute(DomElementItem item)
doExecute in class BaseIteratingStage<DomElementItem>item - Item on which to operate
protected boolean processEntitiesDescriptor(Element entitiesDescriptor)
isRemovingEntitylessEntitiesDescriptor().
entitiesDescriptor - EntitiesDescriptor being processed
protected boolean filterOutDescriptor(Element descriptor)
descriptor - the descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||