public class EncryptedArtifactProducerUtils extends Object
| Constructor and Description |
|---|
EncryptedArtifactProducerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEquals(Object o1,
Object o2)
Simpler replacement for junit's assertEquals.
|
static void |
assertWordlistEquals(Collection<String> actualWordlist,
Collection<String> expectedWordlist) |
static void |
filterCustomerMetaData(NormalizationMetaData normalizationMetaData)
Filters metadata from the customer directory.
|
static void |
mkdirOrErr(File toMkdir)
Run mkdir for the given file('s path).
|
static void |
writeDummyKeys(File dummyKeyForSupplierFile,
File dummyKeyForConsumerFile,
UserKeysForSupplier keyForSupplier,
UserKeysForConsumer keyForConsumer,
String temporaryPassword)
Utility method to write a dummy keypair for testing.
|
public static void assertEquals(Object o1, Object o2)
o1 - an object to compare to the secondo2 - the second object to be comparedpublic static void assertWordlistEquals(Collection<String> actualWordlist, Collection<String> expectedWordlist)
public static void writeDummyKeys(File dummyKeyForSupplierFile, File dummyKeyForConsumerFile, UserKeysForSupplier keyForSupplier, UserKeysForConsumer keyForConsumer, String temporaryPassword) throws IOException
dummyKeyForSupplierFile - where the dummy key (part for suppliers) will be written todummyKeyForConsumerFile - where the dummy key (part for dummy consumers) will be written tokeyForSupplier - the key object to be writtenkeyForConsumer - the key object to be writtentemporaryPassword - password to use for dummy key encryption (one should delete it after the test is done)IOException - throws on failurepublic static void mkdirOrErr(File toMkdir) throws IOException
toMkdir - the location to ensure a directory is at.IOException - throws on failure to ensure a directory exists in the specified location.public static void filterCustomerMetaData(NormalizationMetaData normalizationMetaData)
normalizationMetaData - the object to be modified. (acts as in-out of this method)Licensed under the Apache License 2.0 - Copyright © {inceptionYear} – 2024 the original author or authors.