Package com.nimbusds.jose.crypto.opts
Class OptionUtils
- java.lang.Object
-
- com.nimbusds.jose.crypto.opts.OptionUtils
-
public class OptionUtils extends 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>
booleanoptionIsPresent(Set<JWSSignerOption> opts, Class<T> tClass)
Returnstrue
if the specified set of options contains an instance of a class implementingJWSSignerOption
.
-
-
-
Constructor Detail
-
OptionUtils
public OptionUtils()
-
-
Method Detail
-
optionIsPresent
public static <T extends JWSSignerOption> boolean optionIsPresent(Set<JWSSignerOption> opts, Class<T> tClass)
Returnstrue
if the specified set of options contains an instance of a class implementingJWSSignerOption
.- Parameters:
opts
- The options set, may benull
.tClass
- The class. Must not benull
.- Returns:
true
if an option is present, elsefalse
.
-
-