Class NoTypePermission

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

public class NoTypePermission extends Object implements TypePermission
No permission for any type.

Can be used to skip any existing default permission.

Since:
1.4.7
  • Field Details

  • Constructor Details

    • NoTypePermission

      public NoTypePermission()
  • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object