List of utility methods to do URI to Password
String | getPassword(final URI uri) Method getPassword String retval = null; if (uri != null) { final String userInfo = uri.getUserInfo(); if ((userInfo != null) && (userInfo.length() > 0)) { if (userInfo.indexOf(':') > -1) { retval = userInfo.substring(userInfo.indexOf(':') + 1); if ((retval != null) && (retval.length() > 0)) { ... |
String | getPassword(URI uri) get Password String userInfo = uri.getUserInfo(); if (userInfo != null) { return userInfo.split(":", 2)[1]; return null; |
String | getPasswordFromUserInfo(URI uri) get Password From User Info String userInfo = uri.getUserInfo(); if (userInfo != null) { return userInfo.substring(userInfo.indexOf(":") + 1, userInfo.length()); } else { return null; |