|
||||||||||
| 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.PullUpValidUntilStage
@ThreadSafe public class PullUpValidUntilStage
For each Item collection element that is a SAML EntitiesDescriptor this stage will scan all descendant EntitiesDescriptors and EntityDescriptors, determine the earliest valid until date, set that on the root EntitiesDescriptor and remove the valid until dates from all descendants.
| Field Summary | |
|---|---|
private long |
maxValidityDuration
The maximum amount of time, in milliseconds, a descriptor may be valid. |
private long |
minValidityDuration
The minimum amount of time, in milliseconds, a descriptor may be valid . |
| Constructor Summary | |
|---|---|
PullUpValidUntilStage()
|
|
| Method Summary | |
|---|---|
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
long |
getMaximumValidityDuration()
Gets the maximum amount of time, in milliseconds, a descriptor may be valid. |
long |
getMinimumValidityDuration()
Gets the minimum amount of time, in milliseconds, a descriptor may be valid. |
protected Long |
getNearestValidUntil(Element descriptor)
Gets the shorts cache duration for a given entity and entities descriptor an all its descendant descriptors. |
void |
setMaximumValidityDuration(long duration)
Sets the maximum amount of time, in milliseconds, a descriptor may be valid. |
void |
setMinimumValidityDuration(long duration)
Sets the minimum amount of time, in milliseconds, a descriptor may be valid. |
protected void |
setValidUntil(Element descriptor,
Long validUntil)
Sets the valid until instant on the given descriptor. |
| 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, doDestroy, 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 |
|---|
private long minValidityDuration
private long maxValidityDuration
| Constructor Detail |
|---|
public PullUpValidUntilStage()
| Method Detail |
|---|
public long getMinimumValidityDuration()
public void setMinimumValidityDuration(long duration)
duration - minimum amount of time, in milliseconds, a descriptor may be validpublic long getMaximumValidityDuration()
public void setMaximumValidityDuration(long duration)
duration - maximum amount of time, in milliseconds, a descriptor may be valid, must be greater than 0
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 Long getNearestValidUntil(@Nonnull
Element descriptor)
descriptor - descriptor from which to get the shortest cache duration
protected void setValidUntil(@Nonnull
Element descriptor,
@Nullable
Long validUntil)
minValidityDuration then the instant of now + the minimum duration
is set. If the given validUntil is greater than now + maxValidityDuration then the instant of now + the
maximum duration is set. Otherwise the given instant is set.
descriptor - entity or entities descriptor to receive the validUntil, never nullvalidUntil - validUntil time to be set on the given descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||