Skip to content

Commit

Permalink
Merge branch 'main' into ci-sidecar-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu authored Jan 16, 2025
2 parents c0fa4e7 + ca79ace commit c703bbc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertNull;

import java.io.File;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
Expand Down Expand Up @@ -87,10 +88,9 @@ public static void init() {
@Produces
@ApplicationScoped
public StringEncrypter getStringEncrypter() throws EncryptionException {
log.info("Current folder: {}", (new File(".").getAbsolutePath()));
System.out.println("Current folder: {}" +(new File(".").getAbsolutePath()));
String saltFilePath = Paths.get(Paths.get("").toAbsolutePath().toString(), "target/conf/salt").toAbsolutePath().toString();
FileConfiguration cryptoConfiguration = new FileConfiguration(saltFilePath);

FileConfiguration cryptoConfiguration = new FileConfiguration("./target/conf/salt");
String encodeSalt = cryptoConfiguration.getString("encodeSalt");

return StringEncrypter.instance(encodeSalt);
Expand Down

0 comments on commit c703bbc

Please sign in to comment.