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

public Class ExplicitTypePermission

extends Object
implements TypePermission
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.security.TypePermission
Imports
java.util.Arrays, .Collections, .HashSet, .Set

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

Field Summary

Modifier and TypeField and Description
pack-priv final Set<E>

Constructor Summary

AccessConstructor and Description
public
ExplicitTypePermission(final Class<T>[] types)

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

namesback to summary
pack-priv final Set<E> names

Constructor Detail

ExplicitTypePermissionback to summary
public ExplicitTypePermission(final Class<T>[] types)
Since
1.4.7
ExplicitTypePermissionback to summary
public ExplicitTypePermission(String[] names)
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