public SaslClient createSaslClient()

in src/main/java/software/amazon/msk/auth/iam/internals/IAMSaslClient.java [210:222]


        public SaslClient createSaslClient(String[] mechanisms,
                String authorizationId,
                String protocol,
                String serverName,
                Map<String, ?> props,
                CallbackHandler cbh) throws SaslException {
            String mechanismName = getMechanismNameForClassLoader(cbh.getClass().getClassLoader());

            // Create a client by delegating to the SaslClientFactory for the classloader of the CallbackHandler
            return Sasl.createSaslClient(
                    new String[] { mechanismName },
                    authorizationId, protocol, serverName, props, cbh);
        }