AMBARI-8660. Provide encrypt and decrypt functionality in KerberosCredential