Class PrefixRemover
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 Summary
Modifier and TypeMethodDescriptionstatic PrefixRemoverremovePrefix(String prefix) static PrefixRemoverremovePrefixes(Set<String> prefixes) Specify multiple possible prefixes that should be removed if seen in the string.
-
Method Details
-
removePrefixes
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
-
from
-