Class SensitiveContentFilter
- java.lang.Object
-
- com.cloudbees.jenkins.support.filter.SensitiveContentFilter
-
- All Implemented Interfaces:
ContentFilter
,ExtensionPoint
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class SensitiveContentFilter extends Object implements ContentFilter
Filters contents based on names provided by all known sources.- Since:
- TODO
- See Also:
NameProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface com.cloudbees.jenkins.support.filter.ContentFilter
ALL
-
-
Constructor Summary
Constructors Constructor Description SensitiveContentFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureLoaded()
Ensure that the filter has been loaded at least once.String
filter(String input)
Filters a line or snippet of text.static SensitiveContentFilter
get()
void
reload()
Reloads the state of this filter.
-
-
-
Method Detail
-
get
public static SensitiveContentFilter get()
-
filter
@NonNull public String filter(@NonNull String input)
Description copied from interface:ContentFilter
Filters a line or snippet of text.- Specified by:
filter
in interfaceContentFilter
- Parameters:
input
- input data to filter- Returns:
- the filtered input data
-
ensureLoaded
public void ensureLoaded()
Description copied from interface:ContentFilter
Ensure that the filter has been loaded at least once.- Specified by:
ensureLoaded
in interfaceContentFilter
-
reload
public void reload()
Description copied from interface:ContentFilter
Reloads the state of this filter. This may be implemented to rescan for more items to filter.- Specified by:
reload
in interfaceContentFilter
-
-