Class OptionUtils

java.lang.Object
com.nimbusds.jose.crypto.opts.OptionUtils

public class OptionUtils extends Object
Utilities for processing JOSE options.
  • Constructor Details

  • Method Details

    • 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.