Book Image

Restful Java Web Services Security

By : René Enríquez
Book Image

Restful Java Web Services Security

By: René Enríquez

Overview of this book

Table of Contents (12 chapters)

Digital signatures


Digital signatures, nowadays, are a widely used mechanism. They are mainly used to sign digital documents and issue electronic invoices, among other things.

Among the benefits of using them are the following:

  • They allow the receiver to obtain the identity of whoever has made the signature.

  • They provide the ability to verify that the information sent has not been altered since it has been signed by the issuer.

In order to electronically sign the information that we will exchange through RESTful web services, we will use the authentication mechanism known as DomainKeys Identified Mail (DKIM), which allows us to decorate messages with headers using the rules dictated by the DOSETA specification. This authentication mechanism is mainly used for e-mail identity verification; however, it also works over other protocols such as HTTP, and it is because of this fact we can integrate it with RESTful web services. Thus, we will inject metadata into our messages with the purpose of signing...