如何通过代理组合Set和Map功能?

时间:2017-07-03 11:21:00

标签: javascript ecmascript-6

任何人都知道如何通过代理组合地图和设置,如下所示:

    public static byte[] Sign(byte[] data, X509Certificate2 certificate)
    {
        if (data == null)
            throw new ArgumentNullException("data");
        if (certificate == null)
            throw new ArgumentNullException("certificate");

        // setup the data to sign
        ContentInfo content = new ContentInfo(data);
        SignedCms signedCms = new SignedCms(content, false);
        CmsSigner signer = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, certificate);
        // create the signature
        signedCms.ComputeSignature(signer);
        return signedCms.Encode();
    }

任何人都知道该怎么做,谢谢

0 个答案:

没有答案