@CanIgnoreReturnValue
    public Builder expectTypeHeader(String value) {
      if (value == null) {
        throw new NullPointerException("typ header cannot be null");
      }
      this.expectedTypeHeader = Optional.of(value);
      return this;
    }
Sets the expected type header of the token. When this is set, all tokens with missing or
different {@code typ} header are rejected. When this is not set, all token that have a {@code
typ} header are rejected. So this must be set for token that have a {@code typ} header.

<p>If you want to ignore the type header or if you want to validate it yourself, use
ignoreTypeHeader().

<p>https://tools.ietf.org/html/rfc7519#section-4.1.1
java_src/src/main/java/com/google/crypto/tink/jwt/JwtValidator.java