public class DefaultJWSSignerFactory extends Object implements JWSSignerFactory
| Modifier and Type | Field and Description |
|---|---|
static Set<JWSAlgorithm> |
SUPPORTED_ALGORITHMS
The supported JWS algorithms.
|
| Constructor and Description |
|---|
DefaultJWSSignerFactory() |
| Modifier and Type | Method and Description |
|---|---|
JWSSigner |
createJWSSigner(JWK key)
Create a JWS signer based on the key.
|
JWSSigner |
createJWSSigner(JWK key,
JWSAlgorithm alg)
Create a JWS signer based on the key and algorithm.
|
JCAContext |
getJCAContext()
Returns the Java Cryptography Architecture (JCA) context.
|
Set<JWSAlgorithm> |
supportedJWSAlgorithms()
Returns the names of the supported algorithms by the JWS provider
instance.
|
public static final Set<JWSAlgorithm> SUPPORTED_ALGORITHMS
public DefaultJWSSignerFactory()
public Set<JWSAlgorithm> supportedJWSAlgorithms()
JWSProvideralg JWS header parameter.supportedJWSAlgorithms in interface JWSProviderpublic JCAContext getJCAContext()
JCAAwaregetJCAContext in interface JCAAware<JCAContext>null.public JWSSigner createJWSSigner(JWK key) throws JOSEException
JWSSignerFactorycreateJWSSigner in interface JWSSignerFactoryJOSEExceptionpublic JWSSigner createJWSSigner(JWK key, JWSAlgorithm alg) throws JOSEException
JWSSignerFactorycreateJWSSigner in interface JWSSignerFactoryJOSEExceptionCopyright © 2021 Connect2id Ltd.. All rights reserved.