When doing Authentication Password, it is good to do URL Encoding for Authentication Password (or nlauth_signature). The reason is, sometime users would have special characters in there password, and NetSuite RESTLet authentication does not accept Special characters unless it is URL Encoded. The following error will then occur: 401 Authorizations Required: INVALID_LOGIN_CREDENTIALS if the correct password has no URL Encoding for Special Characters.
Therefore, this article aims to show the function that can used to do Url Encoding in Java.
- Library: java.lang.Object
- Class: URLEncoder
- extends Object
- Method: encode(String s)
For more information on this function/class go to: Class URLEncoder - http://docs.oracle.com/javase/7/docs/api/java/net/URLEncoder.html