예제 #1
0
        public static IList <XpsDigitalSignature> CreateDigitalSignatures(byte[] buffer)
        {
            var result = buffer == null
                ? Array.Empty <XpsDigitalSignature>()
                : XpsDigitalSignatureSerializer.Deserialize(buffer);

            return(result);
        }
예제 #2
0
        public IList <XpsDigitalSignature> GetDocumentSignatures(string documentId)
        {
            var actor           = HttpContext.GetTokenActor();
            var api             = _contextService.GetServerApi(actor);
            var guid            = Guid.Parse(documentId);
            var xpsServiceApi   = api.GetServerCommandProxy <IXpsServiceApi>(XpsServerConstants.XpsServiceName);
            var signatureBuffer = xpsServiceApi.GetSignatures(guid);

            return(XpsDigitalSignatureSerializer.Deserialize(signatureBuffer));
        }