@Test void containSupportedMechanisms() { String[] supported = new ScramSaslClientFactory().getMechanismNames(null); assertArrayEquals(new String[] { "SCRAM-SHA512", "SCRAM-SHA256", "SCRAM-SHA1" }, supported); }
@Override public String[] getMechanismNames(final Map<String, ?> props) { return Stream.of(Mode.values()).map(Mode::mech).toArray(String[]::new); }
ScramSaslClientFactory implements SaslClientFactory { @Override public String[] getMechanismNames(final Map<String, ?> props) { return Stream.of(Mode.values()).map(Mode::mech).toArray(String[]::new); } }
ScramSaslClientFactory implements SaslClientFactory { @Override public String[] getMechanismNames(final Map<String, ?> props) { return Stream.of(Mode.values()).map(Mode::mech).toArray(String[]::new); }  }
ScramSaslClientFactory implements SaslClientFactory { @Override public String[] getMechanismNames(final Map<String, ?> props) { return Stream.of(Mode.values()).map(Mode::mech).toArray(String[]::new); }  @Override SaslClient createSaslClient(final String[] mechanisms, final String authorizationId,
                                     final String protocol, final String serverName,
                                     final Map<String, ?> props, final CallbackHandler cbh); @Override String[] getMechanismNames(final Map<String, ?> props); }
ScramSaslClientFactory implements SaslClientFactory { @Override public String[] getMechanismNames(final Map<String, ?> props) { return Stream.of(Mode.values()).map(Mode::mech).toArray(String[]::new); }  @Override SaslClient createSaslClient(final String[] mechanisms, final String authorizationId,
                                     final String protocol, final String serverName,
                                     final Map<String, ?> props, final CallbackHandler cbh); @Override String[] getMechanismNames(final Map<String, ?> props);  }