public class JmsDefaultDeserializationPolicy extends Object implements JmsDeserializationPolicy
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWLIST_PROPERTY |
static String |
CATCH_ALL_WILDCARD
Value used to indicate that all classes should be allowed or denied,
|
static String |
DENYLIST_PROPERTY |
static String |
DEPRECATED_ALLOWLIST_PROPERTY
Deprecated.
new applications should use the ALLOWLIST_PROPERTY instead
|
static String |
DEPRECATED_DENYLIST_PROPERTY
Deprecated.
new applications should use the DENYLIST_PROPERTY instead
|
| Constructor and Description |
|---|
JmsDefaultDeserializationPolicy()
Creates an instance of this policy with default configuration.
|
JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source) |
| Modifier and Type | Method and Description |
|---|---|
JmsDeserializationPolicy |
copy() |
boolean |
equals(Object obj) |
String |
getAllowList() |
String |
getBlackList()
Deprecated.
Use the replacement method
getDenyList() |
String |
getDenyList() |
String |
getWhiteList()
Deprecated.
Use the replacement method
getAllowList() |
int |
hashCode() |
boolean |
isTrustedType(JmsDestination destination,
Class<?> clazz)
Returns whether the given class is a trusted type and can be deserialized
by the client when calls to
ObjectMessage.getObject() are made. |
void |
setAllowList(String allowList)
Replaces the currently configured allow list with a comma separated
string containing the new allow list.
|
void |
setBlackList(String denyList)
Deprecated.
Use the replacement method
setDenyList(String) |
void |
setDenyList(String denyList)
Replaces the currently configured deny list with a comma separated
string containing the new deny list.
|
void |
setWhiteList(String allowList)
Deprecated.
Use the replacement method
setAllowList(String) |
public static final String CATCH_ALL_WILDCARD
@Deprecated public static final String DEPRECATED_ALLOWLIST_PROPERTY
@Deprecated public static final String DEPRECATED_DENYLIST_PROPERTY
public static final String ALLOWLIST_PROPERTY
public static final String DENYLIST_PROPERTY
public JmsDefaultDeserializationPolicy()
public JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source)
source - The instance whose configuration should be copied from.public JmsDeserializationPolicy copy()
copy in interface JmsDeserializationPolicypublic boolean isTrustedType(JmsDestination destination, Class<?> clazz)
JmsDeserializationPolicyObjectMessage.getObject() are made.isTrustedType in interface JmsDeserializationPolicydestination - the Destination for the message containing the type to be deserialized.clazz - the Type of the object that is about to be read.@Deprecated public String getWhiteList()
getAllowList()public String getAllowList()
@Deprecated public String getBlackList()
getDenyList()public String getDenyList()
@Deprecated public void setWhiteList(String allowList)
setAllowList(String)allowList - the allow list that this policy is configured to recognize.public void setAllowList(String allowList)
allowList - the allow list that this policy is configured to recognize.@Deprecated public void setBlackList(String denyList)
setDenyList(String)denyList - the deny list that this policy is configured to recognize.public void setDenyList(String denyList)
denyList - the deny list that this policy is configured to recognize.Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.