@Test public void shouldCreateEditionWithNonBase64Passwords() { final ClientSideStateProperties properties = new ClientSideStateProperties(); properties.setAuthenticationAlgorithm("HmacSHA1"); properties.setAuthenticationKey(RandomStringUtils.random(32, true, true)); properties.setEncryptionAlgorithm("AES/CBC/PKCS5Padding"); properties.setEncryptionKey(RandomStringUtils.random(32, true, true)); properties.setTid(1L); final StaticEdition edition = new StaticEdition(properties); final KeySource keySource = edition.keySource(); KeySourceAssert.assertThat(keySource).canBeUsedForCryptography(); }
@Override protected KeySource keySource() { return keySource; }
StaticEdition extends Edition { @Override protected KeySource keySource() { return keySource; } }
StaticEdition extends Edition { @Override protected KeySource keySource() { return keySource; } StaticEdition(final ClientSideStateProperties properties); }
StaticEdition extends Edition { @Override protected KeySource keySource() { return keySource; } StaticEdition(final ClientSideStateProperties properties);  }
StaticEdition extends Edition { @Override protected KeySource keySource() { return keySource; } StaticEdition(final ClientSideStateProperties properties);   }