java.lang.Object
io.jenkins.plugins.credentials.secretsmanager.config.transformer.name.PrefixRemover

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PrefixRemover extends Object
A non-regex based remover of string prefixes
  • Method Details

    • removePrefixes

      public static PrefixRemover removePrefixes(Set<String> prefixes)
      Specify multiple possible prefixes that should be removed if seen in the string. Takes a set to ensure that the prefixes are unique (this avoids duplication of effort when checking).
    • removePrefix

      public static PrefixRemover removePrefix(String prefix)
    • from

      public String from(String str)