question: 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 ) ; }
target:  Creates all references needed for this signature