issrg.pba.rbac
Interface ValidityPeriod

All Superinterfaces:
java.lang.Cloneable, Credentials
All Known Implementing Classes:
AbsoluteValidityPeriod, AdjustedPeriodCollection, AdjustedValidityPeriod, AnyTimeValidityPeriod, DefaultValidityPeriodBehaviour, IntersectionValidityPeriod, NowValidityPeriod, RelativeValidityPeriod

public interface ValidityPeriod
extends Credentials

This interface defines behaviour of a Validity Period used by ExpirableCredentials. If notBefore Date is later than notAfter, then the credential is invalidated.

Author:
A.Otenko
See Also:
ExpirableCredentials

Method Summary
 java.util.Date getNotAfter()
          This method returns the Date corresponding to the end of the validity period.
 java.util.Date getNotBefore()
          This method returns the Date corresponding to the start of the validity period.
 
Methods inherited from interface issrg.pba.Credentials
clone, contains, intersection, union
 

Method Detail

getNotBefore

java.util.Date getNotBefore()
This method returns the Date corresponding to the start of the validity period. null means infinity.

Returns:
the Date corresponding to the start of the validity period, or null, if infinitely valid in the past

getNotAfter

java.util.Date getNotAfter()
This method returns the Date corresponding to the end of the validity period. null means eternity.

Returns:
the Date corresponding to the end of the validity period, or null, if infinitely valid in the future