|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<ItemType>
net.shibboleth.metadata.pipeline.BaseIteratingStage<DomElementItem>
net.shibboleth.metadata.dom.saml.ContactPersonFilterStage
@ThreadSafe public class ContactPersonFilterStage
Filtering stage that removes ContactPerson elements from EntityDescriptors.
Note, only the values TECHNICAL, SUPPORT, ADMINISTRATIVE, BILLING, and
OTHER are valid contact person types. Attempting to designate a type other than these will result in that
type being ignored. ContactPerson elements which do not contain the required contactType
attribute are always removed.
To remove all contact persons enable type whitelisting and provide an empty designated type set.
| Field Summary | |
|---|---|
static String |
ADMINISTRATIVE
'administrative' person type constant. |
private Set<String> |
allowedTypes
Allowed contact person types. |
static String |
BILLING
'billing' person type constant. |
private Set<String> |
designatedTypes
Person types which are white/black listed depending on the value of whitelistingTypes. |
private Logger |
log
Class logger. |
static String |
OTHER
'other' person type constant. |
static String |
SUPPORT
'support' person type constant. |
static String |
TECHNICAL
'technical' person type constant. |
private boolean |
whitelistingTypes
Whether designatedTypes should be considered a whitelist. |
| Constructor Summary | |
|---|---|
ContactPersonFilterStage()
|
|
| Method Summary | |
|---|---|
protected void |
doDestroy()
|
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
Collection<String> |
getDesignateTypes()
Gets the list of designated person types. |
protected boolean |
isRetainedContactPersonType(Element contactPerson)
Check whether the given contact person is designated as a type that is to be retained or not. |
boolean |
isWhitelistingTypes()
Gets whether the list of designated roles should be considered a whitelist. |
protected void |
processEntitiesDescriptor(Element entitiesDescriptor)
Iterates over all child EntitiesDescriptor, passing each to processEntitiesDescriptor(Element), and
EntityDescriptor, passing each to processEntityDescriptor(Element). |
protected void |
processEntityDescriptor(Element entityDescriptor)
Processes an EntityDescriptor by removing any ContactPerson that is within it. |
void |
setDesignatedTypes(Collection<String> types)
Sets the list of designated entity roles. |
void |
setWhitelistingTypes(boolean whitelisting)
Sets whether the list of designated roles 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, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
|---|
doInitialize, getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
|---|
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
|---|
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
|---|
initialize, isInitialized |
| Field Detail |
|---|
public static final String TECHNICAL
public static final String SUPPORT
public static final String ADMINISTRATIVE
public static final String BILLING
public static final String OTHER
private final Logger log
private Set<String> allowedTypes
private Set<String> designatedTypes
whitelistingTypes.
private boolean whitelistingTypes
designatedTypes should be considered a whitelist. Default value: true
| Constructor Detail |
|---|
public ContactPersonFilterStage()
| Method Detail |
|---|
@Nonnull @NonnullElements @Unmodifiable public Collection<String> getDesignateTypes()
public void setDesignatedTypes(@Nullable@NullableElements
Collection<String> types)
types - list of designated entity rolespublic boolean isWhitelistingTypes()
public void setWhitelistingTypes(boolean whitelisting)
whitelisting - true if the designated entities should be considered a whitelist, false otherwise
protected boolean doExecute(@Nonnull
DomElementItem item)
throws StageProcessingException
doExecute in class BaseIteratingStage<DomElementItem>item - Item on which to operate
StageProcessingException - thrown if there is a problem with the stage processing
protected void processEntitiesDescriptor(@Nonnull
Element entitiesDescriptor)
processEntitiesDescriptor(Element), and
EntityDescriptor, passing each to processEntityDescriptor(Element).
entitiesDescriptor - EntitiesDescriptor being processed
protected void processEntityDescriptor(@Nonnull
Element entityDescriptor)
entityDescriptor - entity descriptor being processed
protected boolean isRetainedContactPersonType(@Nonnull
Element contactPerson)
contactPerson - the contact person
protected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||