Example #1
0
    } // fromDOM()

    /*
    ****************************************************************************
    * isValid()
    ****************************************************************************
    */ /**
    * Returns true if the current time is within the notBefore and NotOnOrAfter
    * attributes.
    */
    public bool isValid()
    {
        Date oNow = new Date();
        if ((moNotBefore != null) && (oNow.before(moNotBefore)))
        {
            return false;
        }

        if ((moNotAfter != null) && (oNow.after(moNotAfter)))
        {
            return false;
        }

        return true;

    } // isValid()