MCPcopy Create free account
hub / github.com/apache/tomcat / isToken

Method isToken

java/jakarta/servlet/http/Cookie.java:543–553  ·  view source on GitHub ↗
(String possibleToken)

Source from the content-addressed store, hash-verified

541 }
542
543 boolean isToken(String possibleToken) {
544 int len = possibleToken.length();
545
546 for (int i = 0; i < len; i++) {
547 char c = possibleToken.charAt(i);
548 if (!allowed.get(c)) {
549 return false;
550 }
551 }
552 return true;
553 }
554}
555
556class RFC6265Validator extends CookieNameValidator {

Callers 2

validateMethod · 0.95
setAttributeMethod · 0.45

Calls 3

lengthMethod · 0.80
charAtMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected