diff --git a/core-codemods/src/test/resources/sensitive-data-logging/Test.java.after b/core-codemods/src/test/resources/sensitive-data-logging/Test.java.after index 6a280f903..303e145cb 100644 --- a/core-codemods/src/test/resources/sensitive-data-logging/Test.java.after +++ b/core-codemods/src/test/resources/sensitive-data-logging/Test.java.after @@ -32,4 +32,8 @@ public class Test { log.info("Remote auth settings for " + fetchSettings(securityToken)); } + public void multiline(final String privateKeyId) { + var key = lookupPrivateKeyFromKeyChain(privateKeyId); + decrypt(key); + } } diff --git a/core-codemods/src/test/resources/sensitive-data-logging/Test.java.before b/core-codemods/src/test/resources/sensitive-data-logging/Test.java.before index 742b98706..66cb8dd85 100644 --- a/core-codemods/src/test/resources/sensitive-data-logging/Test.java.before +++ b/core-codemods/src/test/resources/sensitive-data-logging/Test.java.before @@ -35,4 +35,12 @@ public class Test { log.info("Remote auth settings for " + fetchSettings(securityToken)); } + public void multiline(final String privateKeyId) { + var key = lookupPrivateKeyFromKeyChain(privateKeyId); + logger.info("Retrieved Private Key {}\nalgo: {}\nkey: {}", + key.getId(), + key.getAlgorithm(), + key.getEncoded()); + decrypt(key); + } }