XADES4J - How to change <ds:Object Id=“xmldsig-1ddcf1ab-7648-4039-b166-69e14da39982-object0”…> to something other id

StackOverflow https://stackoverflow.com/questions/12400560

  •  01-07-2021
  •  | 
  •  

문제

When i signing XML document with Xades4J (Xades-BES), i'm getting signed document including my xml within something like:

<ds:Object Encoding="UTF-8" Id="xmldsig-1ddcf1ab-7648-4039-b166-69e14da39982-object0" MimeType="text/xml"> .... </ds:Object>

i must change Id="xmldsig-1ddcf1ab-7648-4039-b166-69e14da39982-object0" to Id="Dokument-0"

How can i do that ?

Thanks for all answers and sorry for my bad english. Darek

도움이 되었습니까?

해결책

Currently there's no way to change how the signed data object id's are generated, mostly because the lib ensures that unique id's are used, even if a document contains multiple signatures.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top