At the moment this library only supports shared symmetric key authentication. To make it more secure it should add support for X.509 certificates.