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 JCAContextgetJCAContext()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: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
public JCAContext 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.
-
-