Package com.nimbusds.jose.crypto.opts
Class OptionUtils
java.lang.Object
com.nimbusds.jose.crypto.opts.OptionUtils
Utilities for processing JOSE options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
OptionUtils
public OptionUtils()
-
-
Method Details
-
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
.
-