@ThreadSafe public class NamespacesStrippingStage extends AbstractNamespacesStrippingStage
whitelisting property.
Attributes without an explicit namespace prefix will never be removed by this stage.| Modifier and Type | Field and Description |
|---|---|
private Set<String> |
namespaces
XML namespaces to whitelist or blacklist.
|
private boolean |
whitelisting
Whether we are whitelisting or blacklisting (default: blacklisting).
|
| Constructor and Description |
|---|
NamespacesStrippingStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
Collection<String> |
getNamespaces()
Gets the collection of namespaces being blacklisted or whitelisted.
|
boolean |
isWhitelisting()
Indicate whether the stage is whitelisting namespaces or blacklisting (the default).
|
protected boolean |
removingNamespace(String namespace)
Determine whether a particular namespace should be stripped.
|
void |
setNamespaces(Collection<String> nss)
Sets the collection of namespaces to blacklist or whitelist.
|
void |
setWhitelisting(boolean wl)
Set whether the stage is whitelisting namespaces.
|
doExecuteexecute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate boolean whitelisting
@Nonnull public Collection<String> getNamespaces()
public void setNamespaces(@Nonnull Collection<String> nss)
nss - collection of namespacespublic boolean isWhitelisting()
true for whitelisting, false for blacklisting (the default)public void setWhitelisting(boolean wl)
wl - true for whitelisting, false for blacklistingprotected boolean removingNamespace(String namespace)
AbstractNamespacesStrippingStageremovingNamespace in class AbstractNamespacesStrippingStagenamespace - potentially stripped namespacetrue if this namespace should be strippedprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentCopyright © 1999–2016. All rights reserved.