im.toss.http.parser.AbstractTokenValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-auth-parser Show documentation
Show all versions of http-auth-parser Show documentation
HTTP Authorization header parser
The newest version!
package im.toss.http.parser;
abstract class AbstractTokenValidator implements TokenValidator {
protected String unexpectedCharacterError(String unexpectedCharacter, int position) {
return String.format("Unexpected character '%s' at position %d",
unexpectedCharacter, position);
}
protected String unexpectedCharacterError(char unexpectedCharacter, int position) {
return unexpectedCharacterError("" + unexpectedCharacter, position);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy