public final class JwtUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
claimsToJson(JwtClaims claims) |
static String |
claimsToJson(JwtClaims claims,
JsonMapObjectReaderWriter writer) |
static JwtClaims |
jsonToClaims(String json) |
static void |
validateJwtAudienceRestriction(JwtClaims claims,
Message message) |
static void |
validateJwtExpiry(JwtClaims claims,
int clockOffset,
boolean claimRequired) |
static void |
validateJwtIssuedAt(JwtClaims claims,
int timeToLive,
int clockOffset,
boolean claimRequired) |
static void |
validateJwtNotBefore(JwtClaims claims,
int clockOffset,
boolean claimRequired) |
static void |
validateTokenClaims(JwtClaims claims,
int timeToLive,
int clockOffset,
boolean validateAudienceRestriction) |
public static String claimsToJson(JwtClaims claims, JsonMapObjectReaderWriter writer)
public static void validateJwtExpiry(JwtClaims claims, int clockOffset, boolean claimRequired)
public static void validateJwtNotBefore(JwtClaims claims, int clockOffset, boolean claimRequired)
public static void validateJwtIssuedAt(JwtClaims claims, int timeToLive, int clockOffset, boolean claimRequired)
public static void validateJwtAudienceRestriction(JwtClaims claims, Message message)
public static void validateTokenClaims(JwtClaims claims, int timeToLive, int clockOffset, boolean validateAudienceRestriction)
Apache CXF