Skip to content

Commit

Permalink
Removed updateKeyStoreReadKeyPassword test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thendo20 committed Jul 5, 2024
1 parent 4cc06a4 commit e3dafc5
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,7 @@ void serializeAndDeserializeKeyStore() {
Assertions.assertEquals(keyStore.getType(), deserializedKeyStore.getType());
Assertions.assertEquals(keyStore.getProvider(), deserializedKeyStore.getProvider());
}
// @Test
// void updateKeyStoreReadKeyPassword() {
// KeyCreationConfig config = KeyCreationConfig.builder().signKeyNumber(0).encKeyNumber(1).build();
// KeyStore keyStore = keyStoreService.createKeyStore(keyStoreAuth, config);
// KeyStoreAuth newKeystoreAuth = new KeyStoreAuth(new ReadStorePassword("newstorepass"), new ReadKeyPassword("newkeypass".toCharArray()));
// KeyStore updatedKeyStore = keyStoreService.updateKeyStoreReadKeyPassword(keyStore, keyStoreAuth, newKeystoreAuth);
//
//// keyStoreService.
//// updatedKeyStore.
// updatedKeyStore.getKey("newkeypass", newKeystoreAuth.getReadKeyPassword().getValue());
// Assertions.assertTrue(Arrays.equals("newkeypass".toCharArray(), keyStoreAuth.getReadKeyPassword().getValue()));
// }

@Test
void addPasswordBasedSecretKey() {
KeyStore keyStore = keyStoreService.createKeyStore(keyStoreAuth, KeyCreationConfig.builder().build());
Expand Down

0 comments on commit e3dafc5

Please sign in to comment.