Class KsmLogCommon

java.lang.Object
io.jenkins.plugins.ksm.log.KsmLogCommon

public class KsmLogCommon extends Object
  • Constructor Details

    • KsmLogCommon

      public KsmLogCommon(List<String> secretsList, String charsetName)
  • Method Details

    • 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