use of edu.stanford.bmir.protege.web.shared.auth.SaltedPasswordDigest in project webprotege by protegeproject.
the class SaltedPasswordDigestReadConverterTestCase method shouldConvertLowerCaseBase16StringToSaltedPasswordDigest.
@Test
public void shouldConvertLowerCaseBase16StringToSaltedPasswordDigest() {
SaltedPasswordDigest digest = converter.convert(encodedString.toLowerCase(Locale.ENGLISH));
assertThat(digest.getBytes(), is(bytes));
}
use of edu.stanford.bmir.protege.web.shared.auth.SaltedPasswordDigest in project webprotege by protegeproject.
the class SaltedPasswordDigestReadConverterTestCase method shouldConvertUpperCaseBase16StringToSaltedPasswordDigest.
@Test
public void shouldConvertUpperCaseBase16StringToSaltedPasswordDigest() {
SaltedPasswordDigest digest = converter.convert(encodedString.toUpperCase(Locale.ENGLISH));
assertThat(digest.getBytes(), is(bytes));
}
use of edu.stanford.bmir.protege.web.shared.auth.SaltedPasswordDigest in project webprotege by protegeproject.
the class UserRecordRepository_TestCase method setUp.
@Before
public void setUp() throws Exception {
client = new MongoClient();
database = client.getDatabase(MongoTestUtils.getTestDbName());
recordRepository = new UserRecordRepository(database, new UserRecordConverter());
userId = UserId.getUserId("JaneDoe");
userRecord = new UserRecord(userId, "Jane Doe", EMAIL_ADDRESS, "", new Salt("somebytes".getBytes()), new SaltedPasswordDigest("someotherbytes".getBytes()));
}
Aggregations