Protect your data against unauthorized manipulation (Second part)

In the first part of the blog we prepared the data for digital signing. In this part we learn the signing process.

We have to create a digital signature from our entity, therefore we need first of all a Signer object that can sign our entity. We will use the already from the JDK provided class java.security.Signature