|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.security.NoPermission
public class NoPermission
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.
Constructor Summary | |
---|---|
NoPermission(TypePermission permission)
Construct a NoPermission. |
Method Summary | |
---|---|
boolean |
allows(java.lang.Class type)
Check permission for a provided type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoPermission(TypePermission permission)
permission
- the permission to negate or null
to forbid any typeMethod Detail |
---|
public boolean allows(java.lang.Class type)
TypePermission
allows
in interface TypePermission
type
- the type to check
true
if provided type is allowed, false
if permission does not handle the type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |