public class JwtService extends Object
| Constructor and Description |
|---|
JwtService() |
| Modifier and Type | Method and Description |
|---|---|
String |
postSign(Credential credential,
String preSign,
byte[] preEncoded) |
String |
preSign(Claim claim,
Credential credential) |
String |
sign(Claim claim,
Credential credential) |
byte[] |
sign(Claim claim,
Credential credential,
String preSign) |
Claim |
verify(String token,
Credential credential) |
public String sign(Claim claim, Credential credential) throws Exception
Exceptionpublic String preSign(Claim claim, Credential credential) throws Exception
Exceptionpublic byte[] sign(Claim claim, Credential credential, String preSign) throws Exception
Exceptionpublic String postSign(Credential credential, String preSign, byte[] preEncoded) throws Exception
Exceptionpublic Claim verify(String token, Credential credential) throws Exception
ExceptionCopyright © 2020. All rights reserved.