S/MIME Skip checking sign time

The certificate chain will be checked separately
This commit is contained in:
M66B
2020-01-29 19:01:39 +01:00
parent a36c6b3684
commit 34a3b88b49
2 changed files with 56 additions and 12 deletions

View File

@@ -93,7 +93,13 @@ public class EntityCertificate {
}
boolean isExpired() {
long now = new Date().getTime();
return isExpired(null);
}
boolean isExpired(Date date) {
if (date == null)
date = new Date();
long now = date.getTime();
return ((this.after != null && now <= this.after) || (this.before != null && now > this.before));
}