Package | Description |
---|---|
com.thoughtworks.xstream | |
com.thoughtworks.xstream.mapper | |
com.thoughtworks.xstream.security |
Modifier and Type | Method and Description |
---|---|
static TypePermission[] |
XStreamer.getDefaultPermissions()
Retrieve the default permissions to unmarshal an XStream instance.
|
Modifier and Type | Method and Description |
---|---|
void |
XStream.addPermission(TypePermission permission)
Add a new security permission.
|
void |
XStream.denyPermission(TypePermission permission)
Add security permission denying another one.
|
java.lang.Object |
XStreamer.fromXML(HierarchicalStreamDriver driver,
java.io.Reader xml,
TypePermission[] permissions)
Deserialize a self-contained XStream with object from an XML Reader.
|
java.lang.Object |
XStreamer.fromXML(HierarchicalStreamDriver driver,
java.lang.String xml,
TypePermission[] permissions)
Deserialize a self-contained XStream with object from a String.
|
java.lang.Object |
XStreamer.fromXML(java.io.Reader xml,
TypePermission[] permissions)
Deserialize a self-contained XStream with object from an XML Reader.
|
java.lang.Object |
XStreamer.fromXML(java.lang.String xml,
TypePermission[] permissions)
Deserialize a self-contained XStream with object from a String.
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityMapper.addPermission(TypePermission permission)
Add a new permission.
|
Constructor and Description |
---|
SecurityMapper(Mapper wrapped,
TypePermission[] permissions)
Construct a SecurityMapper.
|
Modifier and Type | Class and Description |
---|---|
class |
AnyTypePermission
Permission for any type and
null . |
class |
ArrayTypePermission
Permission for any array type.
|
class |
CGLIBProxyTypePermission
Permission for any array type.
|
class |
ExplicitTypePermission
Explicit permission for a type with a name matching one in the provided list.
|
class |
InterfaceTypePermission
Permission for any interface type.
|
class |
NoPermission
Wrapper to negate another type permission.
|
class |
NoTypePermission
No permission for any type.
|
class |
NullPermission
Permission for
null or XStream's null replacement type. |
class |
PrimitiveTypePermission
Permission for any primitive type and its boxed counterpart (excl.
|
class |
ProxyTypePermission
Permission for any array type.
|
class |
RegExpTypePermission
Permission for any type with a name matching one of the provided regular expressions.
|
class |
TypeHierarchyPermission
Permission for a type hierarchy with a name matching one in the provided list.
|
class |
WildcardTypePermission
Permission for any type with a name matching one of the provided wildcard expressions.
|
Modifier and Type | Field and Description |
---|---|
static TypePermission |
AnyTypePermission.ANY |
static TypePermission |
ArrayTypePermission.ARRAYS |
static TypePermission |
InterfaceTypePermission.INTERFACES |
static TypePermission |
NoTypePermission.NONE |
static TypePermission |
NullPermission.NULL |
static TypePermission |
PrimitiveTypePermission.PRIMITIVES |
static TypePermission |
ProxyTypePermission.PROXIES |
static TypePermission |
CGLIBProxyTypePermission.PROXIES |
Constructor and Description |
---|
NoPermission(TypePermission permission)
Construct a NoPermission.
|
Copyright © 2004–2024 XStream. All rights reserved.