public void fromDOM(XmlElement oElem)
{
reset();
// get the notbefore attribute
if (oElem.hasAttributeNS(null, Tags.ATTR_NOTBEFORE)) {
string sVal = oElem.getAttributeNS(null, Tags.ATTR_NOTBEFORE);
try {
moNotBefore = DOMUtils.fromXMLDateTime(sVal);
} catch (ParseException oEx) {
soLog.warn("Caught exception on notBefore time", oEx);
}
}
// get the notAfter attribute
if (oElem.hasAttributeNS(null, Tags.ATTR_NOTONORAFTER)) {
string sVal = oElem.getAttributeNS(null, Tags.ATTR_NOTONORAFTER);
try {
moNotAfter = DOMUtils.fromXMLDateTime(sVal);
} catch (ParseException oEx) {
soLog.warn("Caught exception on notAfter time", oEx);
}
}
}