File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
dss-document/src/main/java/eu/europa/esig/dss/validation Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -693,16 +693,26 @@ private void registerTimestampUsageDate(TimestampToken timestampToken) {
693
693
protected boolean isTimestampValid (TimestampToken timestampToken ) {
694
694
if (!extractPOEFromUntrustedChains && !containsTrustAnchor (getCertChain (timestampToken ))) {
695
695
LOG .warn ("POE extraction is skipped for untrusted timestamp : {}." , timestampToken .getDSSIdAsString ());
696
+ TokenStatus status = new TokenStatus ();
697
+ status .addRelatedTokenAndErrorMessage (timestampToken , "untrusted_timestamp" );
698
+ certificateVerifier .getAlertOnMissingRevocationData ().alert (status );
696
699
return false ;
697
700
}
698
701
if (!timestampToken .isMessageImprintDataIntact ()) {
699
702
LOG .warn ("POE extraction is skipped for timestamp : {}. The message-imprint is not intact!" ,
700
703
timestampToken .getDSSIdAsString ());
704
+ TokenStatus status = new TokenStatus ();
705
+ status .addRelatedTokenAndErrorMessage (timestampToken , "message_imprint_not_intact" );
706
+ certificateVerifier .getAlertOnMissingRevocationData ().alert (status );
701
707
return false ;
702
708
}
703
709
if (!timestampToken .isSignatureIntact ()) {
704
710
LOG .warn ("POE extraction is skipped for timestamp : {}. The signature is not intact!" ,
705
711
timestampToken .getDSSIdAsString ());
712
+
713
+ TokenStatus status = new TokenStatus ();
714
+ status .addRelatedTokenAndErrorMessage (timestampToken , "signature_not_intact" );
715
+ certificateVerifier .getAlertOnMissingRevocationData ().alert (status );
706
716
return false ;
707
717
}
708
718
return true ;
You can’t perform that action at this time.
0 commit comments