public class JwsProcessor extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
protected JoseSigner |
joseSigner |
protected JsonProcessor |
jsonProcessor |
protected Set<String> |
numericDateProps |
mutex| Constructor and Description |
|---|
JwsProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
build(JwsObject jws) |
JwsProcessor |
copy() |
void |
destroy() |
protected JwsObject |
doParse(String headerPart,
String payloadPart,
String signature) |
JoseSigner |
getJoseSigner() |
JsonProcessor |
getJsonProcessor() |
Set<String> |
getNumericDateProps() |
protected void |
init() |
JwsObject |
parse(String jws) |
JwsProcessor |
setJoseSigner(JoseSigner joseSigner) |
JwsProcessor |
setJsonProcessor(JsonProcessor jsonProcessor) |
JwsProcessor |
setNumericDateProps(String... numericDateProps) |
protected void |
verifyHeader(JoseHeader header,
boolean parsed) |
assertNotInitialized, initializeprotected JsonProcessor jsonProcessor
protected JoseSigner joseSigner
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionprotected void verifyHeader(JoseHeader header, boolean parsed) throws JoseException
JoseExceptionpublic String build(JwsObject jws) throws CryptoException, JsonException, JoseException
public JwsObject parse(String jws) throws CryptoException, JsonException, JoseException
protected JwsObject doParse(String headerPart, String payloadPart, String signature) throws JsonException, JoseException
JsonExceptionJoseExceptionpublic JsonProcessor getJsonProcessor()
public JwsProcessor setJsonProcessor(JsonProcessor jsonProcessor)
public JwsProcessor setNumericDateProps(String... numericDateProps)
public JoseSigner getJoseSigner()
public JwsProcessor setJoseSigner(JoseSigner joseSigner)
public JwsProcessor copy()
Copyright © 2018. All rights reserved.