* @throws ConfigurationException
*/
public static boolean hasExpired(AssertionType assertion) throws ConfigurationException
{
//Check for validity of assertion
ConditionsType conditionsType = assertion.getConditions();
if(conditionsType != null)
{
XMLGregorianCalendar now = XMLTimeUtil.getIssueInstant();
XMLGregorianCalendar notBefore = conditionsType.getNotBefore();
XMLGregorianCalendar notOnOrAfter = conditionsType.getNotOnOrAfter();
if(trace) log.trace("Now="+now.toXMLFormat() + " ::notBefore="+notBefore.toXMLFormat()
+ "::notOnOrAfter="+notOnOrAfter);
return !XMLTimeUtil.isValid(now, notBefore, notOnOrAfter);
}
//TODO: if conditions do not exist, assume the assertion to be everlasting?