Policy settings for integrations through APIs

Policies are understood as the set of signatures, evidence, and other security elements that will determine how to sign a document.

Viafirma Documents allow so many policy combinations that documenting all possible cases would be practically impossible. Therefore, what we propose is to create a template in which we can shape our policies by using the visual designers and once we have the designed policies download the JSON format through History.

La imagen tiene un atributo ALT vacío; su nombre de archivo es image.png
La imagen tiene un atributo ALT vacío; su nombre de archivo es image-1-1024x450.png

From there we can download the json and pick it from the object “policies”

Let’s look at an example to combine biometric signature + signature server

In this case the item ”policies” could be as follows:

La imagen tiene un atributo ALT vacío; su nombre de archivo es image-2.png
"policies" : [ {
       "evidences" : [ {
         "type" : "SIGNATURE",
         "id" : "evidence_200",
         "enabled" : true,
         "helpText" : "Firma {{fullname}}",
         "positions" : [ {
           "rectangle" : {
             "x" : 359,
             "y" : 354,
             "width" : 125,
             "height" : 90
           },
           "page" : 1
         } ],
         "typeFormatSign" : "XADES_B",
         "ocr" : {
           "key" : ""
         },
         "addLink" : true
       } ],
       "signatures" : [ {
         "type" : "SERVER",
         "helpText" : "Sello Electrónico",
         "typeFormatSign" : "PADES_LTA",
         "stampers" : [ {
           "type" : "QR",
           "width" : 300,
           "height" : 38,
           "xAxis" : 57,
           "yAxis" : 754,
           "page" : 1
         } ],
         "lastUpdated" : 0
       } ]
     } ] 

This item is the one that would need to be included in our code to implement the policies that we have set in the designer

¿Buscas una solución de firma digital para tu empresa?

En Viafirma nos adaptamos al 100% a tus necesidades