public class SignerFactoryImpl extends Object implements SignerFactory
| Constructor and Description |
|---|
SignerFactoryImpl(MacFactory macFactory,
PrivateKeySignatureFactory privateKeySignatureFactory,
JWTSerializer jwtSerializer,
Base64.Encoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
Signer |
makeMacSigner(Algorithm algorithm,
Key key) |
Signer |
makeSigner(Algorithm alg,
Key jwk) |
public SignerFactoryImpl(MacFactory macFactory, PrivateKeySignatureFactory privateKeySignatureFactory, JWTSerializer jwtSerializer, Base64.Encoder encoder)
public Signer makeSigner(Algorithm alg, Key jwk) throws InvalidAlgorithmException, InvalidJsonWebKeyException
makeSigner in interface SignerFactoryInvalidAlgorithmExceptionInvalidJsonWebKeyExceptionpublic Signer makeMacSigner(Algorithm algorithm, Key key) throws InvalidAlgorithmException, InvalidJsonWebKeyException
makeMacSigner in interface SignerFactoryInvalidAlgorithmExceptionInvalidJsonWebKeyExceptionCopyright © 2015. All rights reserved.