public class JwtHelper extends Object
| Constructor and Description |
|---|
JwtHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Jwt |
decode(String token)
Creates a token from an encoded token string.
|
static Jwt |
decodeAndVerify(String token,
SignatureVerifier verifier) |
static Jwt |
encode(CharSequence content,
Signer signer) |
public static Jwt decode(String token)
token - the (non-null) encoded token (three Base-64 encoded strings separated
by "." characters)public static Jwt decodeAndVerify(String token, SignatureVerifier verifier)
public static Jwt encode(CharSequence content, Signer signer)
Copyright © 2016 SpringSource. All rights reserved.