public static IList <XpsDigitalSignature> CreateDigitalSignatures(byte[] buffer) { var result = buffer == null ? Array.Empty <XpsDigitalSignature>() : XpsDigitalSignatureSerializer.Deserialize(buffer); return(result); }
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)); }