Class AnyAnnotationTypePermission

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

    public class AnyAnnotationTypePermission
    extends java.lang.Object
    implements com.thoughtworks.xstream.security.TypePermission
    Permission for any type which is annotated with an XStream annotation. This presumes that because the class has an XStream annotation, it was designed with XStream in mind, and therefore it is not vulnerable. Jackson and JAXB follow this philosophy too.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allows​(java.lang.Class type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnyAnnotationTypePermission

        public AnyAnnotationTypePermission()
    • Method Detail

      • allows

        public boolean allows​(java.lang.Class type)
        Specified by:
        allows in interface com.thoughtworks.xstream.security.TypePermission