/* 39 */ this.header = header;
/* */ }
/* */
/* */ public void process(Document message, List<Target> targets, String maxAge, String credential, Collection<String> processedIds) throws WSSecurityException
/* */ {
/* 44 */ Timestamp stamp = this.header.getTimestamp();
/* 45 */ if (stamp == null) {
/* 46 */ throw new FailedCheckException("Required timestamp not present.");
/* */ }
/* */
/* 49 */ if (maxAge == null) {
/* 50 */ return;
/* */ }
/* 52 */ int max = Integer.parseInt(maxAge);
/* */
/* 54 */ Calendar expired = (Calendar)stamp.getCreated().clone();
/* 55 */ expired.add(13, max);
/* */
/* 57 */ if (!Calendar.getInstance().before(expired))
/* 58 */ throw new FailedCheckException("Timestamp of message is too old.");
/* */ }