You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 81 Next »

Introduction

After install and configure you virtual appliance SWS, now you can use their method to sign or apply timestamp. SWS have two interfaces SOAP or REST. SOAP is used for files under 50MB and REST interface is used for files over 50MB.

SWS can manage some signature device like:

  • automatic signature (her name start with AHI or AHIP followed by numbers)
  • eSeal (her name start with SHI or SHIP followed by numbers)
  • remote signature (her name start RHI or RHIP followed by numbers) 
  • disposable signature (her name start with RHI or RHID followed by numbers)
  • long lived signature (her name start with RHIL or RHILD followed by numbers)

Only during the integration, you can see:

  • eSeal like a automatic signature
  • disposable, longlived like a remote signature

And the remote signature like an extension of automatic signature, because beyond username and password require the OTP code.

SWS supports three differents types of signature:

  • Pades: valid only for PDF files
  • Xades: valid only for XML files
  • Cades: valid for every type of files

Apply timestamp on files (according to standard RFC3161)

For every type of signature and timestamp, there is a dedicated web method, which will be described in the the next sections.

In this user guide the examples will be shown using "SoapUI". This is a free tool which can be installed on every OS. With this tool, is possible to create SOAP request which invoke the differents web methods.

During the integration, the application client of SWS should recreate the same XML soap request created on SoapUI with his program language.

Soap Interface

For test SOAP interface, you can make request with SoapUI, following this steps:


Download and install SoapUI from this link:

https://www.soapui.org/tools/soapui/


Once complete the installation:

open SoapUI → File → New Soap Project


And add appliance SWS method to SoapUI, like in this image:


In text box “Initial WSDL” use this URL:

http://<IP-APPLIANCE>:8080/SignEngineWeb/sign-services?wsdl


And you will obtain the list of method like this:





Methods for automatic and remote signature

The principal method used to sign (valid for remote and automatic signature), they are:

signPAdESList → Used for sign only PDF files

signCAdESList → Used for sign every type of files

signXAdESList → Used for sign XML files

getSignatures → permit to obtain the number of signature made since certicate creation

getAvailableSignatures → permit to obtain the numbers of signatures (valid only for device NOT pay per use, else it will generate an exception)

Every method require the Credentials object, in the next section will see how populate this field.

Methods only for remote signature

If you are signing with remote signature, you can use also this methods:

getOTPList → permit to obtain the list of OTP associate to your remote signature (exactly the OTP is associated to the holder of certificate. For example if you have two or more remote signature associate to same holder, you can use this OTP for every remote signature).

sendOtpBySMS → it will send the SMS containig the OTP code.

openSession → permit to obtain the token (like a string) for sign instead to insert new OTP code on every signature). The token is valid for three minutes from generation.

getRemainingTimeForSession → it return the time until the session is valid

closeSession → if you want destroy the token before three minutes

Method for apply timestamp

If you want apply only timestamp, you can use this method:

timestamp → it permits to obtain the file with timestamp is possible to choose between two types TSR or TSD. The option TSR mean the timestamp is another files, while the TSD mean the timestamp signature is in the same file.


After this introduction, below will be described every method with input required.

Credentials Object

All the methods used for sign (signPAdES..., signCAdES..., signXAdES) they use the Credentials object, like you can see in this image:

How popolate this fields?

For automatic and remote signature

For every type of signature (automatic signature and remote signature) you must fill this two fields:

username: contain the device name it start with RHI..., AHI... or SHI...

password: contain the PIN associated to device (read from blind envelope or set by the customer)

Only for remote signature

While only if you you are using the remote signature (username starts with RHI...) you should fill this fields:

idOtp: (optional) it specify the idOtp which you want use for sign. If you don't want set the idOtp, SWS will use automatically the default OTP. You can use the method getOTPList for obtain the idOtp.

Otp: it contains the OTP code recived by SMS or read on app Namirial

sessionKey: it contain the token (like a string) received from method openSession

securityCode: this parameter must not be set. It is used only in certain situation

How works method getOTPList?

With this method you can obtain the OTP list which can be use with specified username, and you will can populate the variable Credentials.idOtp.

This method it require only the username.

For example with username: RHIP20102336019765, in this request:

REQUEST-getOTPList
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getOTPList>
         <credentials>
            <username>RHIP20102336019765</username>
         </credentials>
      </ser:getOTPList>
   </soapenv:Body>
</soapenv:Envelope>


You will obtain response like this:


RESPONSE-getOTPList
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:getOTPListResponse xmlns:ns2="http://service.ws.nam/">
         <return>
            <idOtp>501719</idOtp>
            <serialNumber>20210113-091031RJ2L1</serialNumber>
            <type>SMS</type>
         </return>
         <return>
            <idOtp>537430</idOtp>
            <serialNumber>20210305-163726L0PYF</serialNumber>
            <type>OTP GENERATOR</type>
         </return>
         <return>
            <idOtp>537433</idOtp>
            <serialNumber>20210305-163726F0I75</serialNumber>
            <type>OTP PUSH</type>
         </return>
      </ns2:getOTPListResponse>
   </soap:Body>
</soap:Envelope>


During the sign process is possible to choose between this two idOtps: 501719 (associated to OTP SMS) and the idOTP: 537430 (associated to OTP GENERATOR).

Isn't possible to use OTP PUSH, they are used for other purpose, not for sign.


Now during the sign we can choose two types of idOTP: 501719 or 537430.

Sign with OTP SMS

If you decide to sign with OTP SMS, you should use the method: sendOTPBySMS

This method require in input only the username (in this example the username is: RHIP20102336019765).

The soap request will be like this:

REQUEST-sendOTPBySMS
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:sendOtpBySMS>
         <credentials>
            <username>RHIP20102336019765</username>
         </credentials>
      </ser:sendOtpBySMS>
   </soapenv:Body>
</soapenv:Envelope>


And if everything is ok, in output will receive the response like this:

RESPONSE-sendOTPBySMS
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:sendOtpBySMSResponse xmlns:ns2="http://service.ws.nam/"/>
   </soap:Body>
</soap:Envelope>


And on mobile phone will receive the SMS containing the OTP code (composed from 6 number) for sign, for example now we have received the code: “214196”.

The OTP code just received will be the variable Crediantls.otp during the process of sign.

Sign with OTP GENERATOR (App)

If you decide to sign with OTP GENERATOR, you should open the Namirial OTP App and insert the OTP code showed during the sign process.

→Show the guide "How to configure Namirial OTP App" (To Do/Add)

Sign with sessionKey 

With otp is possible to make only one signature, but if you have need to sign more files, with the “sessionKey” is possible. In the next section will be described how works the session.

This function is available only for remote signature, it permits to sign at most 3 minutes using the same sessionKey. You can see the session like a token provided from method “openSession”.

How obtain the sessionKey?

The method “openSession” it permits to obtain the sessionKey.

In input it require:

  • username
  • password
  • otp
  • idOtp

Like in this example:

REQUEST-openSession
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
	xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:openSession>
         <credentials>
            <idOtp>501719</idOtp>
            <otp>150259</otp>
            <password>13572468</password>
            <username>RHIP20102336019765</username>
         </credentials>
      </ser:openSession>
   </soapenv:Body>
</soapenv:Envelope>


In output will obtain the value of sessionKey which will be used for sign:


RESPONSE-REMOTE-openSession
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:openSessionResponse xmlns:ns2="http://service.ws.nam/">	
		<return>
			f4lf7bq/cCxW6mTgL3iGjFEST5cEAZjgLnXvV3hUFzFHcTvjlH3FOkJy+kv/0Zsv1
			uNK0S7L6jMqHYSspBz+CZl7h3r5IEP2FqrK7WJQTVyrNfyr/trZmDgxYOLuACyoZVUFIlnck5Lkjihui
			sv+gZeB68Spwm+cNDdQQdUS3ngzJavHXxo9ADCX6VDIKKMe/AY0v+R51XWE90JF5LfKEThlv1OCpQC5nhnW8WKOFOm
			P4vM90d79JhFYGVVSZWtnTQ9Dg8pOMvg9wwxNm3uGkKKaS7oTp1ewd+eCG/uSC9k3H2w9GB6vQLHQEbn6d
			VVMcsIqJ0RMmZ2IgraD+scb4Q==
		</return>
      </ns2:openSessionResponse>
   </soap:Body>
</soap:Envelope>


The sessionKey just obtained is valid for three minutes (isn't possible to edit this value!), after will expire and will needed to generate another sessionKey using the method openSession and new OTP code (isn't possible to use the same OTP already used).

How check if the session has expired or valid

Is possible to know when the session will expire with method: “getRemainingTimeForSession”. This method require in input only:

  • usernamame
  • sessionKey (obtained from method "openSession"


Below the example: 

REQUEST-remote-getRemainingTimeForSession
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
			xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getRemainingTimeForSession>
         <credentials>
            <username>RHIP20102336019765</username>
		    <sessionKey>
						f4lf7bq/cCxW6mTgL3iGjFEST5cEAZjgLnXvV3hUFzFHcTvjlH3FOkJy+kv/0Zsv1
						uNK0S7L6jMqHYSspBz+CZl7h3r5IEP2FqrK7WJQTVyrNfyr/trZmDgxYOLuACyoZVUFIlnck5Lkjihui
						sv+gZeB68Spwm+cNDdQQdUS3ngzJavHXxo9ADCX6VDIKKMe/AY0v+R51XWE90JF5LfKEThlv1OCpQC5nhnW8WKOFOm
						P4vM90d79JhFYGVVSZWtnTQ9Dg8pOMvg9wwxNm3uGkKKaS7oTp1ewd+eCG/uSC9k3H2w9GB6vQLHQEbn6d
						VVMcsIqJ0RMmZ2IgraD+scb4Q==
			</sessionKey>
		 </credentials>
      </ser:getRemainingTimeForSession>
   </soapenv:Body>
</soapenv:Envelope>


The SOAP response will be:

RESPONSE-remote-getRemainingTimeForSession
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:getRemainingTimeForSessionResponse xmlns:ns2="http://service.ws.nam/">
         <return>167</return>
      </ns2:getRemainingTimeForSessionResponse>
   </soap:Body>
</soap:Envelope>


Where 167 are the seconds until the session is active. After 180s from creation will be destroyed automatically, but is good pratice close the session before will expire.

You can destroy the session manually before will expire with method: "closeSession"

Destroy manually the session

The method "closeSession" require in input:

  • sessionKey
  • username


Below the SOAP request example:

REQUEST-remote-closeSession
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
	xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:closeSession>
         <credentials>
            <sessionKey>
				f4lf7bq/cCxW6mTgL3iGjFEST5cEAZjgLnXvV3hUFzFHcTvjlH3FOkJy+kv/0Zsv1
				uNK0S7L6jMqHYSspBz+CZl7h3r5IEP2FqrK7WJQTVyrNfyr/trZmDgxYOLuACyoZVUFIlnck5Lkjihui
				sv+gZeB68Spwm+cNDdQQdUS3ngzJavHXxo9ADCX6VDIKKMe/AY0v+R51XWE90JF5LfKEThlv1OCpQC5nhnW8WKOFOm
				P4vM90d79JhFYGVVSZWtnTQ9Dg8pOMvg9wwxNm3uGkKKaS7oTp1ewd+eCG/uSC9k3H2w9GB6vQLHQEbn6d
				VVMcsIqJ0RMmZ2IgraD+scb4Q==	
			</sessionKey>
            <username>RHIP20102336019765</username>
         </credentials>
      </ser:closeSession>
   </soapenv:Body>
</soapenv:Envelope>


For security reason, this method doesn't generate an exception if you insert wrong sessionKey and/or username. The SOAP response will be ever like this:

RESPONSE-remote-closeSession
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:closeSessionResponse xmlns:ns2="http://service.ws.nam/"/>
   </soap:Body>
</soap:Envelope>

Sequence diagram for sign with sessione and OTP SMS

In this seguence diagram, we can sumarize the methods to call for sign using sessionKey and OTP SMS:



Sequence diagram for sign with session with OTP App (da valutare)

If you are using OTP on App you can skip the method "sendOTPBySMS".

DA VALUTARE: se mettere o meno il diagramma delle sequenze con Namirial App OTP

Summarize

For automatic signature the credentials object is composed by:

  • username
  • password

While for remote signature the credentials object is composed by:

  • username
  • password
  • otp
  • idOtp (only if you have more OTP else you can set this to "-1")
  • sessionKey (optional)


If you need to sign multiple files with remote signature you should use the sessionKey how already described.

Now, is complete how populate the Credentials object for methods: signPades, signCades and signXades, we can populate the object buffer.

How populate the "buffer"

The buffer contain the file (in byte array) which you want sign.

For example in SoapUI the buffer is composed by the base64 of file which you want sign, like in this example:

REQUEST-remote-signPadesList
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.nam/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:signPAdES>
			<credentials>
            	<idOtp>501719</idOtp>
	            <otp>548316</otp>
    	        <password>13572468</password>
        	    <username>RHIP20102336019765</username>
	         </credentials>
    	     <buffer>BASE64-FILE-TO-SIGN</buffer>    
			 <PAdESPreferences>
				<level>B</level>
				<signerImage></signerImage>
			</PAdESPreferences>
      </ser:signPAdES>
   </soapenv:Body>
</soapenv:Envelope>

You can dowload the full exampe at this link: signPadesListxml


In output will obtain the base64 associated to file just signed like this: RESPONSE-base64-signPadesList.b64 and decoded will be this PDF: RESPONSE-signPadesList.pdf.

How Sign the file

Finally we have all requisites to populate Credentials object during the sign. Like mentioned before, the methods to sign are:

  • signPAdES
  • signCAdES
  • signXAdES

There are the same methods with suffix "List", they accept in input a list of files to be signed. Therefore with only SOAP request is possible to sign more files (using automatic signature or sessionKey)


With this three methods is possible to sign with every type of signature (automatic and remote).

Everyone of this three methods use the Credentials object filled in the same time.

The automatic signature, require only the variables username and password in the object Credentials.

For example in automatic signature with username: AHI7609757152622 and password 13572468 the object Credentials will be populate like in the image:


REQUEST-AUTOMATIC-Credentials
<credentials>
	<username>RHIP20102336019765</username>
	<password>1357268</password>
</credentials>


While if you are using remote signature you should fill the other fields:

  • idOtp (only if you have more idOTP received from method getOTPList)
  • OTP or sessionKey (will see in the next section how populate this variable)

Suppose we want sign using with the OTP code received previously from method sendOtpBySMS.


The credentials object will be filled in this way:

REQUEST-Credentials-Remote-OTP-SMS
<credentials>
	<idOtp>501719</idOtp>
	<otp>150259</otp>
	<password>13572468</password>
	<username>RHIP20102336019765</username>
</credentials>


idOtp was obtained from method getOTPList method and otp is the code received from method sendOTPBySMS.

Signature Preferences

The difference between signPadesList, signCadesList and signXadesList are based on the preferences:

signPadesList → use PadESPreferences

signCadesList → use CadESPreferences

signXadesList → use XadESPreferences

How populate this preferences will be describe in the next sections.

How populate PadESPreferences

This type of preference is used in method signPadesList. Their principal options are:

PAdESPreferences
NameTypeMandatoryDefault valueDescriptionIncluded from SWS version
hashAlgorithmString
SHA256Algorithm which you want use for sign. Possibile value are: SHA1, SHA256, SHA384, SHA512
levelLevel
BSee the description of Level type
signTypeint



encryptInAnyCaseboolean
false

filenameInTSDString

Not used
outputAsTSDboolean

Not used
withTimestampboolean
falseSpecify if you want add or not the timestamp to file signed
outputBase64Encodedboolean
falseSet to true if you want file signed in Base64 encode
timestampHashAlgoString
SHA-256Algorithm which you want to use during the process of apply timestamp.
timestampUrlString

URL of timestamp provider with standard RFC3161.

Namirial URL:

PROD: https://timestamp.namirialtsp.com / http://timestamp.namirialtsp.com

TEST: https://timestamp.test.namirialtsp.com / http://timestamp.test.namirialtsp.com


timestampUsernameString

Username of timestamp credentials


timestampPasswordString

Password of timestamp credentials
lockFieldsList<String>



needAppearanceDisabledboolean
falseDeprecated
page

1Indicate the page number where you want apply the signature appereance
withTimestampboolean
falseSet to true if you want apply the timestamp after the signature
encryptionPasswordString

Specify the password PDF if present
lockFieldsList<String>



signerImageSignerImage

See the description of SignerImage
signerImageReferenceString

Used for specify the template to be used. (used in old version)
withSignatureFieldboolean
falseSet to true if you want apply the signature on signature field in the PDF

SignerImage

The object SignerImage is composed by the following details:

SignerImage
NameTypeMandatoryDefault valueDescriptionIncluded from SWS version
imagebyte[]

Contains the image which you want apply on the appereance
signerNameString

Contains the text which you want type on the appereance
reasonString

Specify the reason about the signature
textPositionString

Position of the "signerName" on appereance. Is possible to choose between:

  • TOP
  • BOTTOM
  • RIGHT
  • LEFT

xint

Coordinate X of the appereance (0 is right of the page)
yint

Coordinate Y of the appereance (0 is on bottom of the page)
widthint

Specify the width of the appereance
heightint

Specify the height of the appereance
fieldName


Specify the fieldname where apply signature. This fieldName must already exist on PDF file before apply the signature
fontNameString
Times-Roman

Specify the font of the text on appereance to be used. The possible values are:

  • Times-Roman
  • Times-Bold
  • Times-Italic
  • Times-BoldItalic
  • Helvetica
  • Helvetica-Bold
  • Helvetica-Oblique
  • Helvetica-BoldOblique
  • Courier
  • Courier-Bold
  • Courier-Oblique
  • Courier-BoldOblique
  • Symbol
  • ZapfDingbats

imageURLString

URL to obtain the logo for appereance
imageVisibleboolean
falsepermits to show or not the logo on appereance
fontSizeint
10permits to set the fontsize
imageFilenameString

path of the logo on appereance
scaledboolean
falseSet to true if you want resize the logo on appereance
location


place of signature


INSERT EXAMPLE WITH APPEREANCE

Level

You can see how set the correct Level signature:

Level
ValueDescriptionApply on signatureIncluded from SWS version
Bin the file signed will be added the electronic signature and the signing certificatePades, Cades, Xades
TLike B-Level, but adds a time-stamp, respectively a time-mark that proves that the signature existed at a certain date and timePades, Cades, Xades
LTLike T-Level, but adds VRI (Verification Related Information) data to the DSS (Long Term)Pades, Cades, Xades
LTALike LT-level, but adds a document time stamp and VRI data for the TSA (Time Stamping Authority). An LTA may help to validate the signature beyond any event that may limit its validity (Long Term with Arichive Time-Stamps)Pades, Cades, Xades
LTV(Long Term Validation) contain the OCSP/CRL response after the sign. It is used for validation after the signing certificate has been expiredPades

How populate Cades Preferences

With cades signature is possible to sign every type of file, the method signCadesList require:

  • Credentials associated to device signature
  • bufferList, list of files which you want sign
  • CAdESPreferences, the preferences about CAdES signature


In the following table you can see how set correctly the CAdESPreferences

CAdESPreferences
NameTypeMandatoryDefault valueDescriptionIncluded from SWS version
filenameInTSD




outputAsTSD




outputBase64Encodedboolean
falseEncoded the file just signed in base64
timestampHashAlgoString
SHA-256

Algorithm which you want to use during the process of apply timestamp.


timestampPassword




timestampUrlString

URL of timestamp provider with standard RFC3161.

Namirial URL:

PROD: https://timestamp.namirialtsp.com / http://timestamp.namirialtsp.com

TEST: https://timestamp.test.namirialtsp.com / http://timestamp.test.namirialtsp.com


timestampUsernameString

Username of timestamp credentials
hashAlgorithmStringyesSHA256Algorithm which you want use for sign. Possibile value are: SHA1, SHA256, SHA384, SHA512
levelLevel
BSee the description of Level type
withTimestampboolean
false

Set to true if you want apply the timestamp after the signature


counterSignature




counterSignatureIndex




detachedboolean
falseSet to true if you want signature and files in two different files. The output will be the signature.

How populate Xades Preferences

With xades signature is possible to sign only XML files, the method signXadesList require;

  • Credentials associated to device signature
  • bufferList, list of files which you want sign
  • XAdESPreferences, the preferences about XAdES signature


In the following table you can see how set correctly the XAdESPreferences

XAdESPreferences
NameTypeMandatoryDefault valueDescriptionIncluded from SWS version
filenameInTSD




outputAsTSD




outputBase64Encodedboolean
falseEncoded the file just signed in base64
timestampHashAlgoString
SHA-256

Algorithm which you want to use during the process of apply timestamp.


timestampPassword




timestampUrlString

URL of timestamp provider with standard RFC3161.

Namirial URL:

PROD: https://timestamp.namirialtsp.com / http://timestamp.namirialtsp.com

TEST: https://timestamp.test.namirialtsp.com / http://timestamp.test.namirialtsp.com


timestampUsernameString

Username of timestamp credentials
hashAlgorithmStringyesSHA256Algorithm which you want use for sign. Possibile value are: SHA1, SHA256, SHA384, SHA512
levelLevel
BSee the description of Level type
withTimestampboolean
false

Set to true if you want apply the timestamp after the signature


detachedboolean
falseSet to true if you want signature and files in two different files. The output will be the signature.
detachedReferenceURIString



signElementString



signatureIdString



withoutSignatureExclusionboolean
falsePermits to sign the file with/without previous signature
XPathQueryString

Permetis to sign a specified path of XML

Manage error in SWS

Every method can generate exception, for example caused by PIN not correct, sessioneKey expired or OTP not correct.

For example if we can try to execute the method signPAdESList using the same OTP used we obtain SOAP response with error 44, like in this response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>Codice OTP errato, riprovare con il prossimo codice</faultstring>
         <detail>
            <ns2:WSException xmlns:ns2="http://service.ws.nam/">
               <error>44</error>
               <message>Codice OTP errato, riprovare con il prossimo codice</message>
            </ns2:WSException>
         </detail>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

By default the error message is in Italian language. 


Below the table description with all error messages can generate SWS during your execution method:


Error details
Error numberDescription
EnglishItalian
0No errors foundNessun errore riscontrato
1Generic errorErrore Generico
2Virtual device not foundDispositivo virtuale inesistente
3Virtual device lockedDispositivo virtuale bloccato
4Wrong credentialsCredenziali errate
5Wrong emergency codeCodice di emergenza errato
6Virtual device status changes deniedModifiche allo stato del dispositivo virtuale negate
7Signature errorErrore nella firma
8Error creating slotErrore nella creazione dello slot
9Error deleting slotErrore nella eliminazione dello slot
10PIN change errorErrore nel cambio PIN
11Key generation errorErrore nella generazione chiave
12Error in key management configurationErrore nella configurazione del sistema di gestione delle chiavi
13Wrong company codeCodice azienda errato
14No available slotsNessuno slot disponibile
15Virtual device already existsDispositivo virtuale gia' esistente
16Operation performed using a wrong certificateOperazione eseguita usando il certificato errato
17Wrong virtual device codeCodice dispositivo virtuale errato
18Slot already usedSlot gia' utilizzato
22Incompatible file format for the signature type requiredRichiesta una firma di file di formato non compatibile con il tipo di firma richiesto
23Unsupported hash algorithmAlgoritmo di hash non supportato
24Error decrypting CMS dataErrore nella decifratura del CMS EnvelopedData
25Error importing key and certificatesErrore nell'importazione di chiave e certificati
26The public key in the certificate does not match the private keyChiave pubblica nel certificato non corrisponde a quella privata
27Web method denied for the credentials or ssl certificate usedEseguita una chiamata a web method mediante credenziali o certificato ssl non abilitato per questa funzione
28CA doesn't existLa CA inserita non esiste
29The user didn't enter all required fields for the profileL'utente non ha inserito tutti i campi richiesti per il profilo
30EJBCA errorErrore di EJBCA
31Authorization deniedAutorizzazione negata
32Error due to waiting for data approvalErrore dovuto all'attesa per l'approvazione dei dati
33Error approving the entered dataErrore nell'approvazione dei dati inseriti
34Illegal queryErrore per query illegale
35Certificate already revokedCertificato gia' revocato in precedenza
36I / O error, caused by writing / reading / converting a file / byte array / stringErrore di I/O, causato dalla scrittura/lettura/conversione di un file/array di byte/stringa
37Payment verification failedVerifica di pagamento non andata a buon fine
38No available signaturesEseguite tutte le firme a disposizione
42A denied feature is invoked in the current modeE' stata richiamata una funzionalita' non permessa nella modalita' corrente
43A denied feature is invoked in the implementation usedE' stata richiamata una funzionalita' non permessa nell'implementazione usata
44Wrong OTP code, try again with the next codeCodice OTP errato, riprovare con il prossimo codice
45The key isn't associated to a certificateLa chiave non ha associato un certificato
46Unknown certificate formatE' stato passato un certificato di formato sconosciuto
47It isn't possible to open the slotNon e' stato possibile aprire lo slot
49Key login errorErrore di login sulla chiave
50Error generating the CSRErrore nella generazione del CSR
51The maximum number of attempts to access the virtual device is reachedRaggiunto il numero massimo di tentativi di accesso al dispositivo virtuale
52Error decryptingErrore nella decifra
53The certificate has expiredIl certificato associato alla chiave e' scaduto
54There are no tokens for automatic signature with Cosign HSMNon sono disponibili token per la firma automatica con hsm Cosign
55Error updating certificate in dbErrore durante l'aggiornamento del certificato nel db
56Wrong method useErrato utilizzo del metodo
57Method not yet implementedMetodo non ancora implementato
58Error assigning the OTPErrore durante l'assegnazione dell'OTP
59Error assigning the static tokenErrore durante l'assegnazione del token statico
60Error deleting the accountErrore durante la cancellazione dell'account
61Error activating the accountErrore durante l'attivazione dell'account
62Error loading the accountErrore durante il caricamento dell'account
63Error unlocking the accountErrore durante lo sblocco dell'account
64Unavailable hsm licensesLicenze per hsm esaurite
65PIN too shortPIN troppo corto
66Session key incorrectSession key errata
67Session key not specifiedSession key non specificata
68Session key undefinedSession key non definita
69Session key expiredSession key scaduta
70Session key not usableSession key non utilizzabile
71Error generating session keyErrore durante la generazione della session key
72Error incrementing the session counterErrore durante l'incremento del session counter
73Error sending OTP codeErrore durante l'invio del codice OTP
74Error deleting session keyErrore durante la cancellazione della session key
77Error closing sessionErrore durante la chiusura della sessione
78The number of documents to be signed differs from the number of signature preferencesIl numero di documenti da firmare differisce dal numero di preferenze di firma
79Error detecting Security WorldErrore durante il rilevamento del Security World
80Error detecting the ModuleErrore durante il rilevamento del Modulo
81Error reading the SoftCardErrore durante la lettura della SoftCard
82Error writing the SoftCardErrore durante la scrittura della SoftCard
83Error deleting the SoftCardErrore durante la cancellazione della SoftCard
84Error loading SoftCardErrore durante il caricamento della SoftCard
85SoftCard not loadedSoftCard non caricata
86SoftCard already exists in the systemSoftCard gia' esistente a sistema
87SoftCard does not existSoftCard inesistente
88Error reading the keyErrore durante la lettura della chiave
89Error writing the keyErrore durante la scrittura della chiave
90Error deleting the keyErrore durante la cancellazione della chiave
91Error decrypting the RSA dataErrore durante la decifratura RSA
92Error decrypting the CMS envelopeErrore durante la decifratura CMS
93Error creating the SoftCardErrore durante la creazione della SoftCard
94The size of the hash does not coincide with the expected one by the algorithmLa dimensione dell'hash non coincide con quella prevista dall'algoritmo
95Error loading Cosign TokensErrore durante il caricamento dei Token Cosign
96The system takes too much time, HSM overload. Try againIl sistema impiega troppo tempo, HSM sovraccarico. Riprovare
97Timeout passedTimeout superato
98No signature device associated to the userNessun dispositivo di firma remota risulta associato all'utente in questione
1001The OTP device does not existDispositivo OTP non esistente a sistema
1007The OTP device was not activatedIl dispositivo OTP non risulta essere stato attivato
1009Unavailable attempts for the OTP deviceSuperato il numero massimo di tentativi per il dispositivo OTP
1016The OTP device was not associated to the holderIl dispositivo OTP non risulta essere stato associato al titolare

Method signPadesList

This parameters required (IN) and the output (OUT) of this method can be specified with this table:

signPadesList
NameTypeDescriptionIN/OUT
credentialsCredentialsSee the section Credentials for see how populate this objectIN
bufferListList<byte[]>List of byte array which you want signIN
PAdESPreferencesPAdESPreferencesSpecify the details of PadesSignature. See the section PadesPreferences for populate di objectIN

List<byte>List of byte array containg the file just signedOUT

Method signCadesList

This parameters required (IN) and the output (OUT) of this method can be specified with this table:

signPadesList
NameTypeDescriptionIN/OUT
credentialsCredentialsSee the section Credentials for see how populate this objectIN
bufferListList<byte[]>List of byte array which you want signIN
CAdESPreferencesCAdESPreferencesSpecify the details of PadesSignature. See the section CadesPreferences for populate this objectIN

List<byte>List of byte array containg the file just signedOUT

Method signXadesList

This parameters required (IN) and the output (OUT) of this method can be specified with this table:

signXadesList
NameTypeDescriptionIN/OUT
credentialsCredentialsSee the section Credentials for see how populate this objectIN
bufferListList<byte[]>List of byte array which you want signIN
XAdESPreferencesXAdESPreferencesSpecify the details of XadesSignature. See the section XadesPreferences for populate this objectIN

List<byte>List of byte array containg the file just signedOUT


ADVANCED USE


VERIFY TIMESTAMP

While for verify only timestamp, you can use this methods:

timestampTSDVerify → It permits to validate TSD files (file and timestamp in the same file)

timestampTSRVerify → It permits to validate TSR files (file and timestamp in two different files)


  • No labels