protected void addReferencesFromOfflineOCSPSource(List<TimestampReference> references){
  OfflineOCSPSource ocspSource=getOCSPSource();
  if (ocspSource != null) {
    List<BasicOCSPResp> containedOCSPResponses=ocspSource.getContainedOCSPResponses();
    if (CollectionUtils.isNotEmpty(containedOCSPResponses)) {
      usedCertificatesDigestAlgorithms.add(DigestAlgorithm.SHA1);
      for (      BasicOCSPResp basicOCSPResp : containedOCSPResponses) {
        OCSPResp ocspResp=DSSRevocationUtils.fromBasicToResp(basicOCSPResp);
        final byte[] digest=DSSUtils.digest(DigestAlgorithm.SHA1,DSSUtils.getEncoded(ocspResp));
        references.add(new TimestampReference(DigestAlgorithm.SHA1,Base64.encodeBase64String(digest),TimestampReferenceCategory.REVOCATION));
      }
    }
  }
}

protected void addReferencesFromOfflineOCSPSource ( List < TimestampReference > references ) { OfflineOCSPSource ocspSource = getOCSPSource ( ) ; if ( ocspSource != null ) { List < BasicOCSPResp > containedOCSPResponses = ocspSource . getContainedOCSPResponses ( ) ; if ( CollectionUtils . isNotEmpty ( containedOCSPResponses ) ) { usedCertificatesDigestAlgorithms . add ( DigestAlgorithm . SHA1 ) ; for ( BasicOCSPResp basicOCSPResp : containedOCSPResponses ) { OCSPResp ocspResp = DSSRevocationUtils . fromBasicToResp ( basicOCSPResp ) ; final byte [ ] digest = DSSUtils . digest ( DigestAlgorithm . SHA1 , DSSUtils . getEncoded ( ocspResp ) ) ; references . add ( new TimestampReference ( DigestAlgorithm . SHA1 , Base64 . encodeBase64String ( digest ) , TimestampReferenceCategory . REVOCATION ) ) ; } } } }
this method adds references to retrieved ocsp responses from lt level . with lta level , we have a proof of existence
