/** * Get the raw-escaped password. * * @return the raw-escaped password */ public char[] getRawPassword() { int from = indexFirstOf(_userinfo, ':'); if (from == -1) { return null; // null or only user. } int len = _userinfo.length - from - 1; char[] result = new char[len]; System.arraycopy(_userinfo, from + 1, result, 0, len); return result; }
/** * Get the raw-escaped user. * * @return the raw-escaped user */ public char[] getRawUser() { if (_userinfo == null || _userinfo.length == 0) { return null; } int to = indexFirstOf(_userinfo, ':'); // String.indexOf(':', 0, _userinfo.length, _userinfo, 0, 1, 0); if (to == -1) { return _userinfo; // only user. } char[] result = new char[to]; System.arraycopy(_userinfo, 0, result, 0, to); return result; }
/** * Get the raw-escaped password. * * @return the raw-escaped password */ public char[] getRawPassword() { int from = indexFirstOf(_userinfo, ':'); if (from == -1) { return null; // null or only user. } int len = _userinfo.length - from - 1; char[] result = new char[len]; System.arraycopy(_userinfo, from + 1, result, 0, len); return result; }
/** * Get the raw-escaped password. * * @return the raw-escaped password */ public char[] getRawPassword() { int from = indexFirstOf(_userinfo, ':'); if (from == -1) { return null; // null or only user. } int len = _userinfo.length - from - 1; char[] result = new char[len]; System.arraycopy(_userinfo, from + 1, result, 0, len); return result; }
/** * Get the raw-escaped password. * * @return the raw-escaped password */ public char[] getRawPassword() { int from = indexFirstOf(_userinfo, ':'); if (from == -1) { return null; // null or only user. } int len = _userinfo.length - from - 1; char[] result = new char[len]; System.arraycopy(_userinfo, from + 1, result, 0, len); return result; }
/** * Get the raw-escaped password. * * @return the raw-escaped password */ public char[] getRawPassword() { int from = indexFirstOf(_userinfo, ':'); if (from == -1) { return null; // null or only user. } int len = _userinfo.length - from - 1; char[] result = new char[len]; System.arraycopy(_userinfo, from + 1, result, 0, len); return result; }
/** * Get the raw-escaped user. * * @return the raw-escaped user */ public char[] getRawUser() { if (_userinfo == null || _userinfo.length == 0) { return null; } int to = indexFirstOf(_userinfo, ':'); // String.indexOf(':', 0, _userinfo.length, _userinfo, 0, 1, 0); if (to == -1) { return _userinfo; // only user. } char[] result = new char[to]; System.arraycopy(_userinfo, 0, result, 0, to); return result; }
/** * Get the raw-escaped user. * * @return the raw-escaped user */ public char[] getRawUser() { if (_userinfo == null || _userinfo.length == 0) { return null; } int to = indexFirstOf(_userinfo, ':'); // String.indexOf(':', 0, _userinfo.length, _userinfo, 0, 1, 0); if (to == -1) { return _userinfo; // only user. } char[] result = new char[to]; System.arraycopy(_userinfo, 0, result, 0, to); return result; }
/** * Get the raw-escaped user. * * @return the raw-escaped user */ public char[] getRawUser() { if (_userinfo == null || _userinfo.length == 0) { return null; } int to = indexFirstOf(_userinfo, ':'); // String.indexOf(':', 0, _userinfo.length, _userinfo, 0, 1, 0); if (to == -1) { return _userinfo; // only user. } char[] result = new char[to]; System.arraycopy(_userinfo, 0, result, 0, to); return result; }
/** * Get the raw-escaped user. * * @return the raw-escaped user */ public char[] getRawUser() { if (_userinfo == null || _userinfo.length == 0) { return null; } int to = indexFirstOf(_userinfo, ':'); // String.indexOf(':', 0, _userinfo.length, _userinfo, 0, 1, 0); if (to == -1) { return _userinfo; // only user. } char[] result = new char[to]; System.arraycopy(_userinfo, 0, result, 0, to); return result; }