commons/http/src/main/java/org/ldp4j/http/HttpUtils.java
static void checkToken(final String token, final String message, Object... args) {
		checkNotNull(message,"Message cannot be null");
		try {
			validateLength(token);
			validateCharacters(token);
		} catch (IllegalArgumentException e) {
			throw new InvalidTokenException(String.format(message,args),token,e);
		}
	}
static void checkToken(final String token, final String message, Object... args) {
		checkNotNull(message,"Message cannot be null");
		try {
			validateLength(token);
			validateCharacters(token);
		} catch (IllegalArgumentException e) {
			throw new InvalidTokenException(String.format(message,args),token,e);
		}
	}
Checks the given type name for illegal characters, as defined in RFC
7230, section 3.2.6.

@param token
the string to validate
@throws IllegalArgumentException
in case of illegal characters
@see <a href="http://tools.ietf.org/html/rfc7230#section-3.2.6">Hypertext
Transfer Protocol (HTTP/1.1): Message Syntax and Routing, Section
3.2.6</a>