title: Java & XMLDSig: Reference with no URI
body: <p>I'm trying to sign some text using XMLDSig with javax.xml.crypto.dsig.* package. I need to make a reference to some content being signed. And according to project requirements this reference should not have any URI, it means not &lt;Reference URI=""&gt;...&lt;/Reference&gt;, but &lt;Reference&gt;...&lt;/Reference&gt;.</p>
  
  <p>I haven't found any info whether it is possible and correct, but requirement says that XMLDSig allows such references, maximum one per signature.</p>
  
  <p>Have someone faced the same problem? What can be done to produce signature with such reference using javax.xml.crypto.dsig.* package and no magic?</p>
  
  <p>As I understood the package mentioned above only allows to reference some data with URI (or with empty URI), but not without any URI at all. May be I've missed something in its usage?</p>