public class JwtSigner extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
static JwtSigner |
NONE |
mutex| Constructor and Description |
|---|
JwtSigner() |
| Modifier and Type | Method and Description |
|---|---|
JwtSigner |
copy() |
String |
getAlg() |
String |
getKid() |
Digester |
getSigner() |
protected void |
init() |
JwtSigner |
setAlg(String alg) |
JwtSigner |
setKid(String kid) |
JwtSigner |
setSigner(DsaDigester signer) |
JwtSigner |
setSigner(MacDigester signer) |
byte[] |
sign(byte[] message) |
boolean |
verify(byte[] message,
byte[] signature) |
assertNotInitialized, destroy, initializepublic static final JwtSigner NONE
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic byte[] sign(byte[] message)
throws CryptoException
CryptoExceptionpublic boolean verify(byte[] message,
byte[] signature)
throws CryptoException
CryptoExceptionpublic String getAlg()
public Digester getSigner()
public JwtSigner setSigner(MacDigester signer)
public JwtSigner setSigner(DsaDigester signer)
public String getKid()
public JwtSigner copy()
Copyright © 2021. All rights reserved.