Class OptionUtils

    • Method Detail

      • optionIsPresent

        public static <T extends JWSSignerOption> boolean optionIsPresent​(Set<JWSSignerOption> opts,
                                                                          Class<T> tClass)
        Returns true if the specified set of options contains an instance of a class implementing JWSSignerOption.
        Parameters:
        opts - The options set, may be null.
        tClass - The class. Must not be null.
        Returns:
        true if an option is present, else false.