Package com.nimbusds.jose.crypto.opts
Class OptionUtils
java.lang.Object
com.nimbusds.jose.crypto.opts.OptionUtils
Utilities for processing JOSE options.
- Version:
- 2025-07-17
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidensureMinRSAPrivateKeySize(PrivateKey privateKey, Set<? extends Option> opts) Throws anIllegalArgumentExceptionif the size of the specified RSA private key shorter than the minimum required.static <T extends Option>
booleanoptionIsPresent(Set<? extends Option> opts, Class<T> tClass) Deprecated.
-
Constructor Details
-
OptionUtils
public OptionUtils()
-
-
Method Details
-
optionIsPresent
@Deprecated public static <T extends Option> boolean optionIsPresent(Set<? extends Option> opts, Class<T> tClass) Deprecated.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.
-
ensureMinRSAPrivateKeySize
Throws anIllegalArgumentExceptionif the size of the specified RSA private key shorter than the minimum required.- Parameters:
privateKey- The RSA private key. Must not benull.opts- The options. Must not benull.
-