HDFS-2856: refactor a util method for creating the SASL properties used in an encrypted connection.