com.thoughtworks.xstream.security
Class ExplicitTypePermission

java.lang.Object
  extended by com.thoughtworks.xstream.security.ExplicitTypePermission
All Implemented Interfaces:
TypePermission

public class ExplicitTypePermission
extends java.lang.Object
implements TypePermission

Explicit permission for a type with a name matching one in the provided list.

Since:
1.4.7
Author:
Jörg Schaible

Constructor Summary
ExplicitTypePermission(java.lang.Class[] types)
           
ExplicitTypePermission(java.lang.String[] names)
           
 
Method Summary
 boolean allows(java.lang.Class type)
          Check permission for a provided type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplicitTypePermission

public ExplicitTypePermission(java.lang.Class[] types)
Since:
1.4.7

ExplicitTypePermission

public ExplicitTypePermission(java.lang.String[] names)
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 interface TypePermission
Parameters:
type - the type to check
Returns:
true if provided type is allowed, false if permission does not handle the type


Copyright © 2005-2016. All Rights Reserved.