Package com.nimbusds.jose.crypto.impl
Class BaseJWSProvider
java.lang.Object
com.nimbusds.jose.crypto.impl.BaseJWSProvider
- All Implemented Interfaces:
JCAAware<JCAContext>,JOSEProvider,JWSProvider
- Direct Known Subclasses:
ECDSAProvider,EdDSAProvider,MACProvider,RSASSAProvider
The base abstract class for JSON Web Signature (JWS) signers and verifiers.
- Version:
- 2024-04-20
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Java Cryptography Architecture (JCA) context.Returns the names of the supported algorithms by the JWS provider instance.
-
Constructor Details
-
BaseJWSProvider
Creates a new base JWS provider.- Parameters:
algs- The supported algorithms by the JWS provider instance. Must not benull.
-
-
Method Details
-
supportedJWSAlgorithms
Description copied from interface:JWSProviderReturns the names of the supported algorithms by the JWS provider instance. These correspond to thealgJWS header parameter.- Specified by:
supportedJWSAlgorithmsin interfaceJWSProvider- Returns:
- The supported JWS algorithms, empty set if none.
-
getJCAContext
Description copied from interface:JCAAwareReturns the Java Cryptography Architecture (JCA) context. May be used to set a specific JCA security provider or secure random generator.- Specified by:
getJCAContextin interfaceJCAAware<JCAContext>- Returns:
- The JCA context. Not
null.
-