public class TokenUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TOKEN_TYPE_BEARER |
static String |
TOKEN_TYPE_ID |
static String |
TOKEN_TYPE_OFFLINE |
static String |
TOKEN_TYPE_REFRESH |
Constructor and Description |
---|
TokenUtil() |
Modifier and Type | Method and Description |
---|---|
static RefreshToken |
getRefreshToken(byte[] decodedToken)
Return refresh token or offline token
|
static RefreshToken |
getRefreshToken(String refreshToken) |
static boolean |
isOfflineToken(String refreshToken)
Return true if given refreshToken represents offline token
|
static boolean |
isOfflineTokenRequested(String scopeParam) |
public static final String TOKEN_TYPE_BEARER
public static final String TOKEN_TYPE_ID
public static final String TOKEN_TYPE_REFRESH
public static final String TOKEN_TYPE_OFFLINE
public static boolean isOfflineTokenRequested(String scopeParam)
public static RefreshToken getRefreshToken(byte[] decodedToken) throws JWSInputException
decodedToken
- JWSInputException
public static RefreshToken getRefreshToken(String refreshToken) throws JWSInputException
JWSInputException
public static boolean isOfflineToken(String refreshToken) throws JWSInputException
refreshToken
- JWSInputException
Copyright © 2016 JBoss by Red Hat. All rights reserved.