Credential Store
A method responsible for providing a CredentialStore, which is needed for authenticating the messages, needs to be implemented in both servlets.
/**
* Returns the credential store
*
* @return a CredentialStore object with all the credentials
*/
public abstract CredentialStore getCredentialStore();
The getCredentialStore must return a valid CredentialStore object, which can be built from a file with credentials pairs, an InputStream or a String. Each line of the file must contain a secret key and a public key separated by an empty space, for example:
69b2048d-8bf8-4c1c-b49d-e6114897a9a5 dce53190-1f70-4206-ad28-0e1ab3683161
9d1d4fd9-a2c9-464a-88ed-202bdf63d189 6fa921af-cb16-4660-b439-51ee2ff4edc
794f8665-0a34-4f6d-b0dc-b34c82a04494 9e2ff658-3da3-4234-b639-4ee3cd6ea18e