private List<Reference> createSignatureReferences(XMLSignatureFactory xmlSigFactory,List<String> referenceIdList) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
  List<Reference> result=new ArrayList<Reference>();
  for (  String refId : referenceIdList) {
    if (refId == null) {
      continue;
    }
    Reference ref=xmlSigFactory.newReference("#" + refId,xmlSigFactory.newDigestMethod(DigestMethod.SHA512,null),Collections.singletonList(xmlSigFactory.newCanonicalizationMethod(CanonicalizationMethod.EXCLUSIVE,(C14NMethodParameterSpec)null)),null,null);
    result.add(ref);
  }
  return Collections.unmodifiableList(result);
}

private List < Reference > createSignatureReferences ( XMLSignatureFactory xmlSigFactory , List < String > referenceIdList ) throws NoSuchAlgorithmException , InvalidAlgorithmParameterException { List < Reference > result = new ArrayList < Reference > ( ) ; for ( String refId : referenceIdList ) { if ( refId == null ) { continue ; } Reference ref = xmlSigFactory . newReference ( "#" + refId , xmlSigFactory . newDigestMethod ( DigestMethod . SHA512 , null ) , Collections . singletonList ( xmlSigFactory . newCanonicalizationMethod ( CanonicalizationMethod . EXCLUSIVE , ( C14NMethodParameterSpec ) null ) ) , null , null ) ; result . add ( ref ) ; } return Collections . unmodifiableList ( result ) ; }
creates all references needed for this signature
