code: @Deprecated
      @SuppressWarnings("unused")
      public static boolean isTokenValid(String secret, String oid, String token) {
          return isTokenValid(secret.getBytes(Charsets.UTF_8), oid, token);
      }
docs: This method is deprecated. Please use {@link #isTokenValid(byte[], String, String)} instead
  
  Check if a string is a valid token
  @param secret the secret to decrypt the string
  @param oid the ID supposed to be encapsulated in the token
  @param token the token string
  @return {@code true} if the token is valid