public class JoseSigner extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
static JoseSigner |
NONE |
mutex| Constructor and Description |
|---|
JoseSigner() |
| Modifier and Type | Method and Description |
|---|---|
JoseSigner |
copy() |
String |
getAlgorithm() |
String |
getKid() |
Digester |
getSigner() |
protected void |
init() |
JoseSigner |
setAlgorithm(String algorithm) |
JoseSigner |
setKid(String kid) |
JoseSigner |
setSigner(DsaDigester signer) |
JoseSigner |
setSigner(MacDigester signer) |
byte[] |
sign(byte[] message) |
boolean |
verify(byte[] message,
byte[] signature) |
assertNotInitialized, destroy, initializepublic static final JoseSigner 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 getAlgorithm()
public JoseSigner setAlgorithm(String algorithm)
public Digester getSigner()
public JoseSigner setSigner(MacDigester signer)
public JoseSigner setSigner(DsaDigester signer)
public String getKid()
public JoseSigner setKid(String kid)
public JoseSigner copy()
Copyright © 2018. All rights reserved.