I use URLDecode/URLEncoder class like this:
String decodeStr = URLDecoder.decode(str, "UTF-8");
but my security tools says Avoid dangerous J2EE API
, and use
Encoder.encodeForURL()/decodeForURL()
instead of
URLDecoder.decode()
So please anyone can suggest for this point
- Is
URLDecoder.decode()
not secure? - Why this is happening ?
- Any other security classes are available for encoding and decoding ?