Class KieServerTypePermission

  • All Implemented Interfaces:
    com.thoughtworks.xstream.security.TypePermission

    public class KieServerTypePermission
    extends com.thoughtworks.xstream.security.WildcardTypePermission
    Kie Server specific type permission implementation that allows:
    • org.kie.server.api.model classes (including subpackages)
    • classes that come from kjar or its dependencies (were loaded by kjar class loader)
    • set of classes explicitly given when constructing this instance
    • optionally defined by wildcard that is given via system property: org.kie.server.xstream.enabled.packages (comma separated list of wildcard expressions)
    • Constructor Detail

      • KieServerTypePermission

        public KieServerTypePermission​(Set<Class<?>> classes)
    • Method Detail

      • allows

        public boolean allows​(Class type)
        Specified by:
        allows in interface com.thoughtworks.xstream.security.TypePermission
        Overrides:
        allows in class com.thoughtworks.xstream.security.RegExpTypePermission
      • patterns

        protected static String[] patterns()