Package jenkins.util.xstream
Class SafeURLConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.thoughtworks.xstream.converters.basic.URLConverter
jenkins.util.xstream.SafeURLConverter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher
,com.thoughtworks.xstream.converters.SingleValueConverter
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class SafeURLConverter
extends com.thoughtworks.xstream.converters.basic.URLConverter
Wrap the URL handler during deserialization into a specific one that does not generate DNS query on the hostname
for
URLStreamHandler.equals(URL, URL)
or URLStreamHandler.hashCode(URL)
.
Required to protect against SECURITY-637- Since:
- 2.121.3
-
Constructor Summary
-
Method Summary
Methods inherited from class com.thoughtworks.xstream.converters.basic.URLConverter
canConvert
Methods inherited from class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
toString
-
Constructor Details
-
SafeURLConverter
public SafeURLConverter()
-
-
Method Details
-
fromString
- Specified by:
fromString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
- Overrides:
fromString
in classcom.thoughtworks.xstream.converters.basic.URLConverter
-