code: public boolean matchesToken(String tokenName, HttpCookie cookie) {
  		// Check if the cookie is null
  		if (cookie == null) {
  			return tokenValues.containsKey(tokenName) ? false : true;
  		}
  
  		// Check the value of the token from the cookie
  		String tokenValue = getTokenValue(tokenName);
  		if (tokenValue != null && tokenValue.equals(cookie.getValue())) {
  			return true;
  		}
  		return false;
  	}
docs: Checks if a particular cookie has the same value as one of the token values in the HTTP
  session. If the {@literal cookie} parameter is null, the session matches the token if it does
  not have a value for the corresponding token.
  
  @param tokenName the token name
  @param cookie the cookie
  @return true, if true