public class NoPermission extends java.lang.Object implements TypePermission
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.
Constructor and Description |
---|
NoPermission(TypePermission permission)
Construct a NoPermission.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allows(java.lang.Class type)
Check permission for a provided type.
|
public NoPermission(TypePermission permission)
permission
- the permission to negate or null
to forbid any typepublic boolean allows(java.lang.Class type)
TypePermission
allows
in interface TypePermission
type
- the type to checktrue
if provided type is allowed, false
if permission does not handle the typeCopyright © 2004–2024 XStream. All rights reserved.