Class InterfaceTypePermission
- java.lang.Object
-
- com.thoughtworks.xstream.security.InterfaceTypePermission
-
- All Implemented Interfaces:
TypePermission
public class InterfaceTypePermission extends java.lang.Object implements TypePermission
Permission for any interface type.- Since:
- 1.4.7
-
-
Field Summary
Fields Modifier and Type Field Description static TypePermission
INTERFACES
-
Constructor Summary
Constructors Constructor Description InterfaceTypePermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allows(java.lang.Class type)
Check permission for a provided type.boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Field Detail
-
INTERFACES
public static final TypePermission INTERFACES
- Since:
- 1.4.7
-
-
Method Detail
-
allows
public boolean allows(java.lang.Class type)
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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-