com.rsa.certj.provider.pki

Class URLDecoder

java.lang.Object
  |
  +--com.rsa.certj.provider.pki.URLDecoder

public class URLDecoder
extends Object

This class implements a method that decodes a URL-encoded string of MIME-type "x-www-form-urlencoded".

Copyright (c) RSA Security Inc., 1999-2000. All rights reserved.


Constructor Summary

URLDecoder()

 

 

Method Summary

static String

decode(String encodedString)

Decodes a URL-encoded string back to the original string.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLDecoder

public URLDecoder()
Method Detail

decode

public static String decode(String encodedString)
                     throws PKIException
Decodes a URL-encoded string back to the original string. URL-encoding is described as follows:

  • 'a' through 'z' converted to themselves
  • 'A' through 'Z' converted to themselves
  • '0' through '9' converted to themselves
  • '+' converted to a space character
  • any other character converted to a 3-character string "%xy", where xy is the two-digit hexadecimal representation of the lower 8-bits of the character

    Parameters

             encodedString  

    A String containing a URL-encoded string.

    Returns

    A String containing the original string.

    Throws

    PKIException - If URL-decoding fails.

    See Also

    URLEncoder


  • RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000