Class ExplicitTypePermission

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

public class ExplicitTypePermission extends Object implements TypePermission
Explicit permission for a type with a name matching one in the provided list.
Since:
1.4.7
  • Field Details

    • names

      final Set names
  • Constructor Details

    • ExplicitTypePermission

      public ExplicitTypePermission(Class[] types)
      Since:
      1.4.7
    • ExplicitTypePermission

      public ExplicitTypePermission(String[] names)
      Since:
      1.4.7
  • 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