Method Complete
Complete(byte[])
Embeds the DER CMS container into the placeholder and returns the finished document. The prepared bytes are never mutated; every call returns a fresh copy, so a failed external signature can simply be retried.
public byte[] Complete(byte[] cmsContainer)
Parameters
cmsContainerbyte[]The DER-encoded detached CMS (PKCS#7) container.
Returns
- byte[]
Exceptions
- ArgumentNullException
cmsContaineris null.- ArgumentException
The container does not fit the reserved placeholder.