Added method getPublicKeySecure to securely get the public key from secure storage (a trustore)
rather than less secure file system, as per instructions from Andrew