private void linkSignatures(List<PdfSignatureOrDocTimestampInfo> signatures){
  List<PdfSignatureOrDocTimestampInfo> previousList=new ArrayList<PdfSignatureOrDocTimestampInfo>();
  for (  PdfSignatureOrDocTimestampInfo sig : signatures) {
    if (CollectionUtils.isNotEmpty(previousList)) {
      for (      PdfSignatureOrDocTimestampInfo previous : previousList) {
        previous.addOuterSignature(sig);
      }
    }
    previousList.add(sig);
  }
}

private void linkSignatures ( List < PdfSignatureOrDocTimestampInfo > signatures ) { List < PdfSignatureOrDocTimestampInfo > previousList = new ArrayList < PdfSignatureOrDocTimestampInfo > ( ) ; for ( PdfSignatureOrDocTimestampInfo sig : signatures ) { if ( CollectionUtils . isNotEmpty ( previousList ) ) { for ( PdfSignatureOrDocTimestampInfo previous : previousList ) { previous . addOuterSignature ( sig ) ; } } previousList . add ( sig ) ; } }
this method links previous signatures to the new one . this is useful to get revision number and to know if a tsp is over the dss dictionary
