3.2 Use cases
Digitally signed document validation process
Digitally signed document validation process shows how SiVa chooses validation service and possible output of validation process.
User of SiVa system provides digitally signed document file in form of Base64 encoded string. The validation of file and validation policy is handled by validation services underlying libraries.
- In case of DDOC or BDOC containers with XAdES signatures it will be Timemark container validation Service
- In case of ASIC-S containers with TimeStampToken it will be Timestamptoken Validation Service
- In case of other containers or with XAdES, CAdES and PAdES signatures it will be Generic Validation Service
We will log following failure cases:
When file upload fails (request started but was not completed successfully)
When request validation fails
When signature validation fails
User of SiVa system provides detached signatures in form of Base64 encoded string. The validation of file and validation policy is handled by validation services underlying libraries.
We will log following failure cases:
When file upload fails (request started but was not completed successfully)
When request validation fails
When signatures validation fails
Certificate loading process
All validation services require certificates to validate digitally signed documents. Below process shows how certificates are loaded into validation service. Loading process is done separably for each validation service.
Certificate loading process is scheduled cron job inside each validation service to update currently in memory loaded certificates.
This process should run after TSL loader has completed updating SiVa local copy of certificates.
TSL loading use case
TSL implemented in separate module. The process is executed in two ways.
- When SiVa application is started
- As scheduled job
DDOC data file extraction process
DDOC data file extraction process shows how SiVa extracts data file(s) from container and possible output of data file extraction.
User of SiVa system provides digitally signed DDOC file in form of Base64 encoded string. The extraction of data files is handled by underlying JDigiDoc library.
We will log following failure cases: When file upload fails (request started but was not completed successfully) When request validation fails.