Is it possible to digitally sign a string (Using JCA) and then compare the same by creating another string which is digitally signed as the previous one.
Scenario: I have a product details which needs to be digitally signed (using JCA or any other API) and passed it to the client. The client which is state-full has to hold this data and then need to pass this on the consecutive calls. The same product details which present in the payload is then passed in the consecutive calls will be retrieved and again the signature is created and then compared it against the previously sent. If both are not same then an error will be thrown. Is this possible ?