Configuring a TLS secured connection in Java