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) Returnstrueif 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) Returnstrueif 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:
trueif an option is present, elsefalse.
-