public class JWTManager extends Object
jwt.refresh-token.revoke
event from FusionAuth.Constructor and Description |
---|
JWTManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(io.fusionauth.jwt.domain.JWT jwt)
Determines if a given JWT object is valid or not.
|
static void |
revoke(UUID userId,
int durationSeconds)
Makes a user as having their JWTs revoked for the given number of seconds starting at the instant this method is
called.
|
public static boolean isValid(io.fusionauth.jwt.domain.JWT jwt)
jwt
- The JWT to check.public static void revoke(UUID userId, int durationSeconds)
now +
durationSeconds
.userId
- The id of the user to revoke their JWTsdurationSeconds
- The duration of the JWTs in seconds. This value should come from FusionAuth based on the
application the JWT is for.Copyright © 2021. All rights reserved.