Class NullPermission

java.lang.Object
com.thoughtworks.xstream.security.NullPermission
All Implemented Interfaces:
TypePermission

public class NullPermission extends Object implements TypePermission
Permission for null or XStream's null replacement type.
Since:
1.4.7
  • Field Details

  • Constructor Details

    • NullPermission

      public NullPermission()
  • Method Details

    • allows

      public boolean allows(Class type)
      Description copied from interface: TypePermission
      Check permission for a provided type.
      Specified by:
      allows in interface TypePermission
      Parameters:
      type - the type to check
      Returns:
      true if provided type is allowed, false if permission does not handle the type