Package jenkins.security
Class CustomClassFilter.Static
java.lang.Object
jenkins.security.CustomClassFilter.Static
- All Implemented Interfaces:
ExtensionPoint,CustomClassFilter
- Enclosing interface:
CustomClassFilter
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public static class CustomClassFilter.Static
extends Object
implements CustomClassFilter
Standard filter which pays attention to a system property.
To use, specify a system property
hudson.remoting.ClassFilter containing a comma-separated list of Class.getName() to whitelist.
Entries may also be preceded by ! to blacklist.
Example: -Dhudson.remoting.ClassFilter=com.google.common.collect.LinkedListMultimap,!com.acme.illadvised.YoloReflectionFactory$Handle-
Nested Class Summary
Nested classes/interfaces inherited from interface jenkins.security.CustomClassFilter
CustomClassFilter.Contributed, CustomClassFilter.StaticNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermine whether a class should be permitted byClassFilter.isBlacklisted(Class)ofClassFilter.DEFAULT.Determine whether a class should be permitted byClassFilter.isBlacklisted(String)ofClassFilter.DEFAULT.
-
Field Details
-
overrides
Map fromClass.getName()to true to permit, false to reject. Unmentioned classes are not treated specially. Intentionallypublicfor possible mutation without restart by Groovy scripting.
-
-
Constructor Details
-
Static
public Static()
-
-
Method Details
-
permits
Description copied from interface:CustomClassFilterDetermine whether a class should be permitted byClassFilter.isBlacklisted(Class)ofClassFilter.DEFAULT.- Specified by:
permitsin interfaceCustomClassFilter- Parameters:
c- the class- Returns:
- true to permit it when it would normally be rejected (for example due to having a custom serialization method and being from a third-party library); false to reject it when it would normally be permitted; null to express no opinion (the default)
-
permits
Description copied from interface:CustomClassFilterDetermine whether a class should be permitted byClassFilter.isBlacklisted(String)ofClassFilter.DEFAULT.- Specified by:
permitsin interfaceCustomClassFilter- Parameters:
name- a class name- Returns:
- true to permit it when it would normally be rejected (currently useless);
false to reject it when it would normally be permitted (currently due to
ClassFilter.STANDARD; null to express no opinion (the default)
-