public class JwtUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JwtUtils.Error |
static class |
JwtUtils.ErrorInfo |
Modifier and Type | Field and Description |
---|---|
static String |
CLAIM_USER_ID |
static String |
CLAIM_USER_RESOURCE_ID |
static String |
OAUTH_POOL_ID |
static String |
OAUTH_PROVIDER_ID |
Constructor and Description |
---|
JwtUtils() |
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
errorCodes(Throwable t)
jose error codes, can be logged on server side
and help lookup proper messages
|
static JwtUtils.Error |
errorDetails(Throwable t,
SecurityContext context)
returns the error encapsulated in Error class
for fine grain control.
|
static String |
errorMessage(Throwable t)
safe and comprehensive error message to log on server and
throw to client.
|
public static final String CLAIM_USER_ID
public static final String CLAIM_USER_RESOURCE_ID
public static final String OAUTH_PROVIDER_ID
public static final String OAUTH_POOL_ID
public static List<Integer> errorCodes(Throwable t)
t
- - Possible InvalidJwtException classpublic static String errorMessage(Throwable t)
t
- - Possible InvalidJwtException classpublic static JwtUtils.Error errorDetails(Throwable t, SecurityContext context)
t
- - Possible InvalidJwtException class