public class JwtProcessor extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
issuer |
protected JsonProcessor |
jsonProcessor |
protected JwtSigner |
jwtSigner |
mutex| Constructor and Description |
|---|
JwtProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
JsonProcessor |
getJsonProcessor() |
JwtSigner |
getJwtSigner() |
protected void |
init() |
JwtHeader |
newHeader() |
JwtPayload |
newPayload() |
JwtToken |
parseJwt(String jwt) |
JwtProcessor |
setIssuer(String issuer) |
JwtProcessor |
setJsonProcessor(JsonProcessor jsonProcessor) |
JwtProcessor |
setJwtSigner(JwtSigner jwtSigner) |
String |
toJwt(JwtToken jwt) |
assertNotInitialized, initializeprotected JsonProcessor jsonProcessor
protected JwtSigner jwtSigner
protected String issuer
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionpublic JwtHeader newHeader()
public JwtPayload newPayload()
public String toJwt(JwtToken jwt) throws CryptoException, JsonException, JwtException
CryptoExceptionJsonExceptionJwtExceptionpublic JwtToken parseJwt(String jwt) throws IllegalArgumentException, CryptoException, JsonException, JwtException
public JsonProcessor getJsonProcessor()
public JwtProcessor setJsonProcessor(JsonProcessor jsonProcessor)
public JwtSigner getJwtSigner()
public JwtProcessor setJwtSigner(JwtSigner jwtSigner)
public JwtProcessor setIssuer(String issuer)
Copyright © 2021. All rights reserved.