Top Description Fields Constructors Methods
com.thoughtworks.xstream.security

public Class TypeHierarchyPermission

extends Object
implements TypePermission
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.security.TypePermission

Permission for a type hierarchy with a name matching one in the provided list.
Author
Jörg Schaible
Since
1.4.7

Field Summary

Modifier and TypeField and Description
private Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allows(Class<T>
the type to check
type
)

Implements com.thoughtworks.xstream.security.TypePermission.allows.

Check permission for a provided type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeback to summary
private Class<T> type

Constructor Detail

TypeHierarchyPermissionback to summary
public TypeHierarchyPermission(Class<T> type)
Since
1.4.7

Method Detail

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

Implements com.thoughtworks.xstream.security.TypePermission.allows.

Doc from com.thoughtworks.xstream.security.TypePermission.allows.

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