Class XStreamTypePermission
- java.lang.Object
-
- com.atlassian.bamboo.persister.xstream.XStreamTypePermission
-
- All Implemented Interfaces:
com.thoughtworks.xstream.security.TypePermission
- Direct Known Subclasses:
BandanaXStreamTypePermission
,RemoteCommunicationXStreamTypePermission
public abstract class XStreamTypePermission extends Object implements com.thoughtworks.xstream.security.TypePermission
XStream type permission which usesSerializationSecurityManager
to decide what class is allowed to be marshalled/unmarshalled.
-
-
Field Summary
Fields Modifier and Type Field Description protected SerializationSecurityManager
serializationSecurityManager
-
Constructor Summary
Constructors Constructor Description XStreamTypePermission(SerializationSecurityManager serializationSecurityManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
allows(@Nullable Class type)
protected abstract @NotNull SerializationSecurityMethod
getSerializationSecurityMethod()
-
-
-
Field Detail
-
serializationSecurityManager
protected final SerializationSecurityManager serializationSecurityManager
-
-
Constructor Detail
-
XStreamTypePermission
public XStreamTypePermission(SerializationSecurityManager serializationSecurityManager)
-
-
Method Detail
-
allows
public boolean allows(@Nullable @Nullable Class type)
- Specified by:
allows
in interfacecom.thoughtworks.xstream.security.TypePermission
-
getSerializationSecurityMethod
@NotNull protected abstract @NotNull SerializationSecurityMethod getSerializationSecurityMethod()
-
-