Class RegExpTypePermission
java.lang.Object
com.thoughtworks.xstream.security.RegExpTypePermission
- All Implemented Interfaces:
TypePermission
- Direct Known Subclasses:
WildcardTypePermission
Permission for any type with a name matching one of the provided regular expressions.
- Since:
- 1.4.7
- Author:
- Jörg Schaible
-
Constructor Summary
ConstructorsConstructorDescriptionRegExpTypePermission(String[] patterns) RegExpTypePermission(Pattern[] patterns) -
Method Summary
-
Constructor Details
-
RegExpTypePermission
-
RegExpTypePermission
-
-
Method Details
-
allows
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
-