public class ModelUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AccessToken |
getAccessTokenFrom(TokenResponse tokenResponse) |
static String |
getAccessTokenPayloadStringFrom(TokenResponse tokenResponse) |
static String |
getAccessTokenPayloadStringFrom(TokenResponse tokenResponse,
boolean prettyPrint) |
protected static byte[] |
getBase64Decoded(String string) |
static String |
getEncodedHeader(String encodedJWT) |
static String |
getEncodedPayload(String encodedJWT) |
static String |
getEncodedSignature(String encodedJWT) |
static RefreshToken |
getRefreshTokenFrom(TokenResponse tokenResponse) |
static String |
getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse) |
static String |
getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse,
boolean prettyPrint) |
protected static String |
splitAndGet(String encodedJWT,
int index) |
static String |
toJSONString(Object object) |
static String |
toJSONString(Object object,
boolean prettyPrint) |
public static String getAccessTokenPayloadStringFrom(TokenResponse tokenResponse) throws Exception
Exceptionpublic static String getAccessTokenPayloadStringFrom(TokenResponse tokenResponse, boolean prettyPrint) throws Exception
Exceptionpublic static AccessToken getAccessTokenFrom(TokenResponse tokenResponse) throws Exception
Exceptionpublic static String getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse) throws Exception
Exceptionpublic static String getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse, boolean prettyPrint) throws Exception
Exceptionpublic static RefreshToken getRefreshTokenFrom(TokenResponse tokenResponse) throws Exception
Exceptionprotected static byte[] getBase64Decoded(String string)
Copyright © 2021. All Rights Reserved.