Package io.jenkins.plugins.ksm.log
Class KsmLogCommon
- java.lang.Object
-
- io.jenkins.plugins.ksm.log.KsmLogCommon
-
public class KsmLogCommon extends Object
-
-
Constructor Summary
Constructors Constructor Description KsmLogCommon(List<String> secretsList, String charsetName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eol(OutputStream logger, byte[] b, int len)
String
getSecretRegexPattern()
Make an "or" regular express of descending secret lengths.
-
-
-
Method Detail
-
getSecretRegexPattern
public String getSecretRegexPattern()
Make an "or" regular express of descending secret lengths. This is so we redact the full secret and not leave particles. ie PASS vs PASSWORD. If PASS was redacted before PASSWORD, it would leave WORD in the console log.- Returns:
- regular expression "or" string
-
eol
public void eol(OutputStream logger, byte[] b, int len) throws IOException
- Throws:
IOException
-
-