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 <Reference URI="">...</Reference>, but <Reference>...</Reference>.
I haven't found any info whether it is possible and correct, but requirement says that XMLDSig allows such references, maximum one per signature.
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?
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?