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
public abstract class BaseJWSProvider extends Object implements JWSProvider
The base abstract class for JSON Web Signature (JWS) signers and verifiers.- Version:
- 2015-11-16
- Author:
- Vladimir Dzhuvinov
-
-
Constructor Summary
Constructors Constructor Description BaseJWSProvider(Set<JWSAlgorithm> algs)
Creates a new base JWS provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCAContext
getJCAContext()
Returns the Java Cryptography Architecture (JCA) context.Set<JWSAlgorithm>
supportedJWSAlgorithms()
Returns the names of the supported algorithms by the JWS provider instance.
-
-
-
Constructor Detail
-
BaseJWSProvider
public BaseJWSProvider(Set<JWSAlgorithm> algs)
Creates a new base JWS provider.- Parameters:
algs
- The supported algorithms by the JWS provider instance. Must not benull
.
-
-
Method Detail
-
supportedJWSAlgorithms
public Set<JWSAlgorithm> supportedJWSAlgorithms()
Description copied from interface:JWSProvider
Returns the names of the supported algorithms by the JWS provider instance. These correspond to thealg
JWS header parameter.- Specified by:
supportedJWSAlgorithms
in interfaceJWSProvider
- Returns:
- The supported JWS algorithms, empty set if none.
-
getJCAContext
public JCAContext getJCAContext()
Description copied from interface:JCAAware
Returns the Java Cryptography Architecture (JCA) context. May be used to set a specific JCA security provider or secure random generator.- Specified by:
getJCAContext
in interfaceJCAAware<JCAContext>
- Returns:
- The JCA context. Not
null
.
-
-