public class ModelUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ModelUtils() |
public static String getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse) throws Exception
Exceptionpublic static String getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse, boolean prettyPrint) throws Exception
Exceptionpublic static AccessToken getAccessTokenFrom(TokenResponse tokenResponse) throws Exception
Exceptionpublic static AccessToken getAccessTokenFrom(String authorizationHeaderOrBase64EncodedJWT) 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
Exceptionpublic static RefreshToken getRefreshTokenFrom(String base64EncodedJWT) throws Exception
Exceptionprotected static byte[] getBase64Decoded(String string)
public static byte[] getDecodedHeader(String value)
public static byte[] getDecodedPayload(String value)
public static byte[] getDecodedSignature(String value)
public static String getClientIdFromToken(AccessToken accessToken)
Copyright © 2022. All Rights Reserved.