public class JwtAuthenticator extends Object implements Authenticator
Constructor and Description |
---|
JwtAuthenticator(Key key)
Create a JWT-based authenticator.
|
Modifier and Type | Method and Description |
---|---|
io.jsonwebtoken.Claims |
parse(String token)
Parse a token into a set of claims.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate
public JwtAuthenticator(Key key)
key
- a keypublic io.jsonwebtoken.Claims parse(String token)
Authenticator
parse
in interface Authenticator
token
- the token