Class WildcardTypePermission
- java.lang.Object
-
- com.thoughtworks.xstream.security.RegExpTypePermission
-
- com.thoughtworks.xstream.security.WildcardTypePermission
-
- All Implemented Interfaces:
TypePermission
public class WildcardTypePermission extends RegExpTypePermission
Permission for any type with a name matching one of the provided wildcard expressions.Supported are patterns with path expressions using dot as separator:
- ?: one non-control character except separator, e.g. for 'java.net.Inet?Address'
- *: arbitrary number of non-control characters except separator, e.g. for types in a package like 'java.lang.*'
- **: arbitrary number of non-control characters including separator, e.g. for types in a package and subpackages like 'java.lang.**'
The complete range of UTF-8 characters is supported except control characters.
- Since:
- 1.4.7
-
-
Constructor Summary
Constructors Constructor Description WildcardTypePermission(java.lang.String[] patterns)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String[]
getRegExpPatterns(java.lang.String[] wildcards)
-
Methods inherited from class com.thoughtworks.xstream.security.RegExpTypePermission
allows
-
-