Пример #1
0
 /**
  * base constructor - content with detached signature.
  *
  * @param signedContent the content that was signed.
  * @param sigData the signature object.
  */
 public CmsSignedData(
     CmsProcessable signedContent,
     Stream sigData)
     : this(signedContent, CmsUtilities.ReadContentInfo(sigData))
 {
 }
Пример #2
0
 /**
  * base constructor - with encapsulated content
  */
 public CmsSignedData(
     Stream sigData)
     : this(CmsUtilities.ReadContentInfo(sigData))
 {
 }
Пример #3
0
 public CmsSignedData(
     CmsProcessable signedContent,
     byte[]                  sigBlock)
     : this(signedContent, CmsUtilities.ReadContentInfo(new MemoryStream(sigBlock, false)))
 {
 }
Пример #4
0
 /**
  * Content with detached signature, digests precomputed
  *
  * @param hashes a map of precomputed digests for content indexed by name of hash.
  * @param sigBlock the signature object.
  */
 public CmsSignedData(
     IDictionary hashes,
     byte[]          sigBlock)
     : this(hashes, CmsUtilities.ReadContentInfo(sigBlock))
 {
 }
Пример #5
0
 public CmsCompressedData(
     Stream compressedDataStream)
     : this(CmsUtilities.ReadContentInfo(compressedDataStream))
 {
 }
Пример #6
0
 public CmsSignedData(
     byte[] sigBlock)
     : this(CmsUtilities.ReadContentInfo(new MemoryStream(sigBlock, false)))
 {
 }
Пример #7
0
 public CmsCompressedData(
     byte[] compressedData)
     : this(CmsUtilities.ReadContentInfo(compressedData))
 {
 }
Пример #8
0
 public CmsAuthenticatedData(
     Stream authData)
     : this(CmsUtilities.ReadContentInfo(authData))
 {
 }
Пример #9
0
 public CmsAuthEnvelopedData(
     Stream authEnvData)
     : this(CmsUtilities.ReadContentInfo(authEnvData))
 {
 }
Пример #10
0
 public CmsEnvelopedData(
     Stream envelopedData)
     : this(CmsUtilities.ReadContentInfo(envelopedData))
 {
 }
Пример #11
0
 public CmsEnvelopedData(
     byte[] envelopedData)
     : this(CmsUtilities.ReadContentInfo(envelopedData))
 {
 }