Class OptionUtils


  • public class OptionUtils
    extends java.lang.Object
    Utilities for processing JOSE options.
    • Constructor Summary

      Constructors 
      Constructor Description
      OptionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends JWSSignerOption>
      boolean
      optionIsPresent​(java.util.Set<JWSSignerOption> opts, java.lang.Class<T> tClass)
      Returns true if the specified set of options contains an instance of a class implementing JWSSignerOption.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptionUtils

        public OptionUtils()
    • Method Detail

      • optionIsPresent

        public static <T extends JWSSignerOption> boolean optionIsPresent​(java.util.Set<JWSSignerOption> opts,
                                                                          java.lang.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.