Class ExplicitTypePermission
- java.lang.Object
-
- com.thoughtworks.xstream.security.ExplicitTypePermission
-
- All Implemented Interfaces:
TypePermission
public class ExplicitTypePermission extends java.lang.Object implements TypePermission
Explicit permission for a type with a name matching one in the provided list.- Since:
- 1.4.7
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Setnames
-
Constructor Summary
Constructors Constructor Description ExplicitTypePermission(java.lang.Class[] types)ExplicitTypePermission(java.lang.String[] names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallows(java.lang.Class type)Check permission for a provided type.
-
-
-
Method Detail
-
allows
public boolean allows(java.lang.Class type)
Description copied from interface:TypePermissionCheck permission for a provided type.- Specified by:
allowsin interfaceTypePermission- Parameters:
type- the type to check- Returns:
trueif provided type is allowed,falseif permission does not handle the type
-
-