Class NoPermission
java.lang.Object
com.thoughtworks.xstream.security.NoPermission
- All Implemented Interfaces:
TypePermission
Wrapper to negate another type permission.
If the wrapped TypePermission
allows the type, this instance will throw a ForbiddenClassException
instead. An instance of this permission cannot be used to allow a type.
- Since:
- 1.4.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
permission
-
-
Constructor Details
-
NoPermission
Construct a NoPermission.- Parameters:
permission
- the permission to negate ornull
to forbid any type- Since:
- 1.4.7
-
-
Method Details
-
allows
Description copied from interface:TypePermission
Check permission for a provided type.- Specified by:
allows
in interfaceTypePermission
- Parameters:
type
- the type to check- Returns:
true
if provided type is allowed,false
if permission does not handle the type
-