net.shibboleth.metadata.dom.saml
Class SetValidUntilStage
java.lang.Object
net.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<ItemType>
net.shibboleth.metadata.pipeline.BaseIteratingStage<DomElementItem>
net.shibboleth.metadata.dom.saml.SetValidUntilStage
- All Implemented Interfaces:
- Component, Stage<DomElementItem>
public class SetValidUntilStage
- extends BaseIteratingStage<DomElementItem>
Sets a validUntil attribute for every EntityDescriptor and EntitiesDescriptor element in the collection.
This stage requires the following properties be set prior to initialization:
|
Field Summary |
private long |
validityDuration
Amount of time the descriptors will be valid, expressed in milliseconds. |
|
Method Summary |
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
protected void |
doInitialize()
Do the initialization of the component. |
long |
getValidityDuration()
Gets the amount of time the descriptors will be valid, expressed in milliseconds. |
void |
setValidityDuration(long duration)
Sets the amount of time the descriptors will be valid, expressed in milliseconds. |
validityDuration
private long validityDuration
- Amount of time the descriptors will be valid, expressed in milliseconds.
SetValidUntilStage
public SetValidUntilStage()
getValidityDuration
public long getValidityDuration()
- Gets the amount of time the descriptors will be valid, expressed in milliseconds.
- Returns:
- amount of time the descriptors will be valid, expressed in milliseconds
setValidityDuration
public void setValidityDuration(long duration)
- Sets the amount of time the descriptors will be valid, expressed in milliseconds.
- Parameters:
duration - amount of time the descriptors will be valid, expressed in milliseconds
doExecute
protected boolean doExecute(DomElementItem item)
throws StageProcessingException
- Processes a given Item.
- Specified by:
doExecute in class BaseIteratingStage<DomElementItem>
- Parameters:
item - Item on which to operate
- Returns:
- true if the Item should be retained in the collection, false if not
- Throws:
StageProcessingException - thrown if there is a problem with the stage processing
doInitialize
protected void doInitialize()
throws ComponentInitializationException
- Do the initialization of the component. Default implementation of this method is a no-op.
Extending classes should override this method to perform any initialization logic necessary.
- Overrides:
doInitialize in class AbstractComponent
- Throws:
ComponentInitializationException - throw if there is a problem initializing the component
Copyright © 2009-2011. All Rights Reserved.