| | |
| | | // First, ignore any leading whitespace. |
| | | int length = authPasswordValue.length(); |
| | | int pos = 0; |
| | | while ((pos < length) && (authPasswordValue.charAt(pos) == ' ')) |
| | | while (pos < length && authPasswordValue.charAt(pos) == ' ') |
| | | { |
| | | pos++; |
| | | } |
| | |
| | | |
| | | // Ignore any spaces before the dollar sign separator. Then read the dollar |
| | | // sign and ignore any trailing spaces. |
| | | while ((pos < length) && (authPasswordValue.charAt(pos) == ' ')) |
| | | while (pos < length && authPasswordValue.charAt(pos) == ' ') |
| | | { |
| | | pos++; |
| | | } |
| | | |
| | | if ((pos < length) && (authPasswordValue.charAt(pos) == '$')) |
| | | if (pos < length && authPasswordValue.charAt(pos) == '$') |
| | | { |
| | | pos++; |
| | | } |
| | |
| | | message); |
| | | } |
| | | |
| | | while ((pos < length) && (authPasswordValue.charAt(pos) == ' ')) |
| | | while (pos < length && authPasswordValue.charAt(pos) == ' ') |
| | | { |
| | | pos++; |
| | | } |
| | |
| | | while (pos < length) |
| | | { |
| | | char c = authPasswordValue.charAt(pos); |
| | | if ((c == ' ') || (c == '$')) |
| | | if (c == ' ' || c == '$') |
| | | { |
| | | break readAuthInfo; |
| | | } |
| | |
| | | |
| | | // Ignore any spaces before the dollar sign separator. Then read the dollar |
| | | // sign and ignore any trailing spaces. |
| | | while ((pos < length) && (authPasswordValue.charAt(pos) == ' ')) |
| | | while (pos < length && authPasswordValue.charAt(pos) == ' ') |
| | | { |
| | | pos++; |
| | | } |
| | | |
| | | if ((pos < length) && (authPasswordValue.charAt(pos) == '$')) |
| | | if (pos < length && authPasswordValue.charAt(pos) == '$') |
| | | { |
| | | pos++; |
| | | } |
| | |
| | | ResultCode.INVALID_ATTRIBUTE_SYNTAX, message); |
| | | } |
| | | |
| | | while ((pos < length) && (authPasswordValue.charAt(pos) == ' ')) |
| | | while (pos < length && authPasswordValue.charAt(pos) == ' ') |
| | | { |
| | | pos++; |
| | | } |
| | |
| | | while (pos < length) |
| | | { |
| | | char c = authPasswordValue.charAt(pos); |
| | | if ((c == ' ') || (c == '$')) |
| | | if (c == ' ' || c == '$') |
| | | { |
| | | break ; |
| | | } |