return prototypeKeyBinding;
}
private void processValidityInterval(OMElement validityIntervalElem)
throws XKMSException {
ValidityInterval validityInterval = new ValidityInterval();
String strNotBefore = validityIntervalElem
.getAttributeValue(XKMS2Constants.Q_ATTR_NOT_BEFORE);
String strNotOnOrAfter = validityIntervalElem
.getAttributeValue(XKMS2Constants.Q_ATTR_NOT_ON_OR_AFTER);
DateFormat zulu = new XmlSchemaDateFormat();
try {
if (strNotBefore != null) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(zulu.parse(strNotBefore));
validityInterval.setNotBefore(calendar);
}
if (strNotOnOrAfter != null) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(zulu.parse(strNotOnOrAfter));
validityInterval.setNotOnOrAfter(calendar);
}
} catch (ParseException xkmse) {
throw new XKMSException(xkmse);
}