Interface SecretPatternFactory

All Superinterfaces:
ExtensionPoint
All Known Implementing Classes:
AlmquistShellSecretPatternFactory, Base64SecretPatternFactory, BashSecretPatternFactory, BatchSecretPatternFactory, DollarSecretPatternFactory, LiteralSecretPatternFactory

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public interface SecretPatternFactory extends ExtensionPoint
Provides encoded forms to an input for use in masking those forms in logs. These are typically implemented to handle various shell quoting algorithms (sometimes confused with escaping) to pass literal string values to an interpreter.
  • Method Details

    • getEncodedForms

      @NonNull Collection<String> getEncodedForms(@NonNull String input)
      Returns a collection of alternative forms the given input may be encoded as in logs.
    • all

      @NonNull static ExtensionList<SecretPatternFactory> all()
      Returns all SecretPatternFactory extensions known at runtime.