Package eu.europa.esig.dss.spi.util
Class BaseTimeDependent
- java.lang.Object
-
- eu.europa.esig.dss.spi.util.BaseTimeDependent
-
- All Implemented Interfaces:
TimeDependent
- Direct Known Subclasses:
ServiceInfoStatus,TSLServiceStatusAndInformationExtensions
public class BaseTimeDependent extends Object implements TimeDependent
-
-
Constructor Summary
Constructors Constructor Description BaseTimeDependent()BaseTimeDependent(Date startDate, Date endDate)
-
Method Summary
Modifier and Type Method Description DategetEndDate()The end of the validity period.DategetStartDate()The start of the validity period.voidsetEndDate(Date d)voidsetStartDate(Date d)StringtoString()
-
-
-
Method Detail
-
getStartDate
public Date getStartDate()
Description copied from interface:TimeDependentThe start of the validity period. It shall never be null.- Specified by:
getStartDatein interfaceTimeDependent- Returns:
- the start date of the validity period
-
setStartDate
public void setStartDate(Date d)
-
getEndDate
public Date getEndDate()
Description copied from interface:TimeDependentThe end of the validity period. Null indicates that this is the last known case. If not null, it is assumed that the end date is not older than the start date.- Specified by:
getEndDatein interfaceTimeDependent- Returns:
- the end date of the validity period or null if the object is still valid
-
setEndDate
public void setEndDate(Date d)
-
-