Interface TypePermission
-
- All Known Implementing Classes:
AnyTypePermission,ArrayTypePermission,CGLIBProxyTypePermission,ExplicitTypePermission,InterfaceTypePermission,NoPermission,NoTypePermission,NullPermission,PrimitiveTypePermission,ProxyTypePermission,RegExpTypePermission,TypeHierarchyPermission,WildcardTypePermission
public interface TypePermissionDefinition of a type permission.- Since:
- 1.4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallows(java.lang.Class type)Check permission for a provided type.
-
-
-
Method Detail
-
allows
boolean allows(java.lang.Class type)
Check permission for a provided type.- Parameters:
type- the type to check- Returns:
trueif provided type is allowed,falseif permission does not handle the type- Throws:
ForbiddenClassException- if provided type is explicitly forbidden- Since:
- 1.4.7
-
-