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 |
compact(JwtObject jwt) |
JwtProcessor |
copy() |
void |
destroy() |
protected JwtObject |
doParse(String headerPart,
String payloadPart) |
JoseSigner |
getJoseSigner() |
JsonProcessor |
getJsonProcessor() |
Set<String> |
getNumericDateProps() |
protected void |
init() |
JoseHeader |
newHeader() |
JwtObject |
parse(String jwt) |
JoseHeader |
parseHeader(String headerPart) |
JwtPayload |
parsePayload(String payloadPart) |
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 InitializeObjectDestroyExceptionpublic JoseHeader newHeader()
protected void verifyHeader(JoseHeader header, boolean parsed) throws JoseException
JoseExceptionpublic String compact(JwtObject jwt) throws CryptoException, JsonException, JoseException
public JwtObject parse(String jwt) throws CryptoException, JsonException, JoseException
protected JwtObject doParse(String headerPart, String payloadPart) throws JsonException, JoseException
JsonExceptionJoseExceptionpublic JoseHeader parseHeader(String headerPart) throws JsonException, JoseException
JsonExceptionJoseExceptionpublic JwtPayload parsePayload(String payloadPart)
public 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.