Top Description Methods
com.thoughtworks.xstream.security

public Interface TypePermission

Known Direct Implementers
com.thoughtworks.xstream.security.AnyTypePermission, com.thoughtworks.xstream.security.ArrayTypePermission, com.thoughtworks.xstream.security.CGLIBProxyTypePermission, com.thoughtworks.xstream.security.ExplicitTypePermission, com.thoughtworks.xstream.security.InterfaceTypePermission, com.thoughtworks.xstream.security.NoPermission, com.thoughtworks.xstream.security.NoTypePermission, com.thoughtworks.xstream.security.NullPermission, com.thoughtworks.xstream.security.PrimitiveTypePermission, com.thoughtworks.xstream.security.ProxyTypePermission, com.thoughtworks.xstream.security.RegExpTypePermission, com.thoughtworks.xstream.security.TypeHierarchyPermission

Definition of a type permission.
Author
Jörg Schaible
Since
1.4.7

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if provided type is allowed, false if permission does not handle the type
allows
(Class<T>
the type to check
type
)

Check permission for a provided type.

Method Detail

allowsback to summary
public boolean allows(Class<T> type)

Check permission for a provided type.

Parameters
type:Class<T>

the type to check

Returns:boolean

true if provided type is allowed, false if permission does not handle the type

Exceptions
ForbiddenClassException:
if provided type is explicitly forbidden
Since
1.4.7