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

Compare with Current View Page History

« Previous Version 12 Next »

Introduction


The REST interface offered by SWS is exposed at the path:

http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/


This path is composed by other sub-path for every of purpose:


  • admin: method for sws like remove certificate from cache
  • enquiry: contain the method for obtain the information like signatures available, signer certificate, timestamps available ecc...
  • sign: this is the principal path of SWS and contain the methods for apply the signature
  • timestamps: methods for apply the timestamp on every type of file

And in this guid will be described how manage the error generated by the REST interface.


Enquiry

ENQUIRY: certificate


Descriptionreturn the certifcate associated to "device_signer"
HttpMethodPOST
Path
/rest/enquiry/certificate
Request
{
  "credentials": {
    "username""device_signer"
  }
}
Response

ENQUIRY: signatures


Descriptionreturn the numer of signatures apposed from "device_signer"
HttpMethodPOST
Path
/rest/enquiry/signatures
Request
{
  "credentials": {
    "username""device_signer"
  }
}
Response


ENQUIRY: signatures/available


Descriptionreturn the number of signatures which "device_signer" can apply
HttpMethodPOST
Path
/rest/enquiry/signatures/available
Request
{
  "credentials": {
    "username""device_signer"
  }
}
Response


ENQUIRY: otps


Descriptionreturn the otp list associated to "device_signer"
HttpMethodPOST
Path
/rest/enquiry/otps
Request
{
  "credentials": {
    "username""device_signer"
  }
}
Response


ENQUIRY: timestamps/available


Descriptionreturn the numeber of timestamp available (valid only for Namirial TSA account)
HttpMethodPOST
Path
/rest/enquiryt/timestamps/available
Request
{
  TO FILL
  }
}
Response

ENQUIRY: errors


Descriptionreturn the error description associated to error code
HttpMethodPOST
Path
/rest/enquiryt/errors
Request
{
  TO FILL
  }
}
Response

Admin

ADMIN: remove-certificate-from-cache


Descriptionremove the certificate from cache of SWS
HttpMethodPUT
Path
/rest/admin/remove-certificate-from-cache
Request
{
  "credentials": {
    "username""device_signer"
  }
}

Timestamps

TIMESTAMPS: apply

Descriptionpermits to apply timestamp on specified file
HttpMethodPOST
Path
/rest/timestamps/apply
Request
{
 TO FILL
  }
}
Response

User

USER: change-password

Descriptionpermits to change the password associated to device signer
HttpMethodPOST
Path
/rest/user/change-password
Request
{
 TO FILL
  }
}
Response

Sign

SIGN: openSession


Descriptionpermits to open the sessione for apply multiple sign with remote device
HttpMethodPOST
Path
/rest/sign/openSession
Request
{
 TO FILL
  }
}
Response

SIGN: closeSession


Descriptionpermits to destroy the session
HttpMethodPOST
Path
/rest/sign/openSession
Request
{
 TO FILL
  }
}
Response
  • No labels