Class ScramSaslClient

    • Field Detail

      • LOGGER

        private static final Logger LOGGER
        Logger for this class.
    • Constructor Detail

      • ScramSaslClient

        public ScramSaslClient()
    • Method Detail

      • createMac

        private static Mac createMac​(String algorithm,
                                     byte[] key)
        Creates a new MAC using the supplied algorithm and key.
        Parameters:
        algorithm - of the MAC
        key - to seed the MAC
        Returns:
        new mac
      • createDigest

        private static byte[] createDigest​(String algorithm,
                                           byte[] data)
        Digests the supplied data using the supplied algorithm.
        Parameters:
        algorithm - of the digest
        data - to digest
        Returns:
        digested data