public class JwtProcessor extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
protected JoseSigner |
joseSigner |
protected JsonProcessor |
jsonProcessor |
protected Set<String> |
numericDateProps |
mutex| Constructor and Description |
|---|
JwtProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
build(JwtObject jwt) |
JwtProcessor |
copy() |
void |
destroy() |
protected JwtObject |
doParse(String headerPart,
String payloadPart,
String signature) |
JoseSigner |
getJoseSigner() |
JsonProcessor |
getJsonProcessor() |
Set<String> |
getNumericDateProps() |
protected void |
init() |
JwtObject |
parse(String jwt) |
JwtProcessor |
setJoseSigner(JoseSigner joseSigner) |
JwtProcessor |
setJsonProcessor(JsonProcessor jsonProcessor) |
JwtProcessor |
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(JwtObject jwt) throws CryptoException, JsonException, JoseException
public JwtObject parse(String jwt) throws CryptoException, JsonException, JoseException
protected JwtObject doParse(String headerPart, String payloadPart, String signature) throws JsonException, JoseException
JsonExceptionJoseExceptionpublic JsonProcessor getJsonProcessor()
public JwtProcessor setJsonProcessor(JsonProcessor jsonProcessor)
public JwtProcessor setNumericDateProps(String... numericDateProps)
public JoseSigner getJoseSigner()
public JwtProcessor setJoseSigner(JoseSigner joseSigner)
public JwtProcessor copy()
Copyright © 2018. All rights reserved.