Package net.shibboleth.metadata.dom.saml
Class ValidateValidUntilStage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.AbstractStage<T>
net.shibboleth.metadata.pipeline.AbstractIteratingStage<Element>
net.shibboleth.metadata.dom.saml.ValidateValidUntilStage
- All Implemented Interfaces:
Stage<Element>,net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.IdentifiableComponent,net.shibboleth.shared.component.IdentifiedComponent,net.shibboleth.shared.component.InitializableComponent
Checks that a SAML EntitiesDescriptor or EntityDescriptor's validUntil is (optionally) present and is within a given
range. Items which are not a SAML EntitiesDescriptor or EntityDescriptor are ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DurationInterval from now within which the validUntil date must fall.private booleanWhether the item is required to have a validUntil attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidProcesses a givenItem.final DurationGets the interval from now within which the validUntil date must fall.final booleanGets whether the item is required to have a validUntil attribute.voidsetMaxValidityInterval(Duration interval) Sets the interval from now within which the validUntil date must fall.voidsetRequireValidUntil(boolean isRequired) Sets whether the item is required to have a validUntil attribute.Methods inherited from class net.shibboleth.metadata.pipeline.AbstractIteratingStage
doExecuteMethods inherited from class net.shibboleth.metadata.pipeline.AbstractStage
execute, getCollectionPredicate, setCollectionPredicateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
requireValidUntil
private boolean requireValidUntilWhether the item is required to have a validUntil attribute. Default value:true -
maxValidityInterval
Interval from now within which the validUntil date must fall. A value of 0 indicates that no maximum interval is checked. Default value: 1 week
-
-
Constructor Details
-
ValidateValidUntilStage
public ValidateValidUntilStage()Constructor.
-
-
Method Details
-
isRequireValidUntil
public final boolean isRequireValidUntil()Gets whether the item is required to have a validUntil attribute.- Returns:
- whether the item is required to have a validUntil attribute
-
setRequireValidUntil
public void setRequireValidUntil(boolean isRequired) Sets whether the item is required to have a validUntil attribute.- Parameters:
isRequired- whether the item is required to have a validUntil attribute
-
getMaxValidityInterval
Gets the interval from now within which the validUntil date must fall.- Returns:
- Interval from now within which the validUntil date must fall
-
setMaxValidityInterval
Sets the interval from now within which the validUntil date must fall. A value of 0 indicates that there is no check on the upper bound of the validity period.- Parameters:
interval- interval from now within which the validUntil date must fall; must be greater than or equal to 0
-
doExecute
Description copied from class:AbstractIteratingStageProcesses a givenItem.- Specified by:
doExecutein classAbstractIteratingStage<Element>- Parameters:
item-Itemon which to operate- Throws:
StageProcessingException- thrown if there is a problem with the stage processing
-