@Test public void testMd5Hash() { String password = "admin123"; String md5Hash = "0192023a7bbd73250516f069df18b500"; assertThat(underTest.passwordsMatch(password, md5Hash), is(true)); }
@Override public boolean passwordsMatch(final Object submittedPlaintext, final String encrypted) { return sha1PasswordService.passwordsMatch(submittedPlaintext, encrypted) || md5PasswordService.passwordsMatch(submittedPlaintext, encrypted); }
LegacyNexusPasswordService implements PasswordService { @Override public boolean passwordsMatch(final Object submittedPlaintext, final String encrypted) { return sha1PasswordService.passwordsMatch(submittedPlaintext, encrypted) || md5PasswordService.passwordsMatch(submittedPlaintext, encrypted); } }
LegacyNexusPasswordService implements PasswordService { @Override public boolean passwordsMatch(final Object submittedPlaintext, final String encrypted) { return sha1PasswordService.passwordsMatch(submittedPlaintext, encrypted) || md5PasswordService.passwordsMatch(submittedPlaintext, encrypted); } LegacyNexusPasswordService(); }
LegacyNexusPasswordService implements PasswordService { @Override public boolean passwordsMatch(final Object submittedPlaintext, final String encrypted) { return sha1PasswordService.passwordsMatch(submittedPlaintext, encrypted) || md5PasswordService.passwordsMatch(submittedPlaintext, encrypted); } LegacyNexusPasswordService(); @Override String encryptPassword(final Object plaintextPassword); @Override boolean passwordsMatch(final Object submittedPlaintext, final String encrypted); }
LegacyNexusPasswordService implements PasswordService { @Override public boolean passwordsMatch(final Object submittedPlaintext, final String encrypted) { return sha1PasswordService.passwordsMatch(submittedPlaintext, encrypted) || md5PasswordService.passwordsMatch(submittedPlaintext, encrypted); } LegacyNexusPasswordService(); @Override String encryptPassword(final Object plaintextPassword); @Override boolean passwordsMatch(final Object submittedPlaintext, final String encrypted);  }