@JsonIgnore
    public AccessToken getAccessToken() {
        try {
            val accessTokenObject = getAttribute(OidcProfileDefinition.ACCESS_TOKEN);
            if (accessTokenObject != null) {
                val accessTokenBase64 = accessTokenObject.toString();
                val base64Decoded = new String(Base64.getDecoder().decode(accessTokenBase64), StandardCharsets.UTF_8);
                val accessTokenJSON = new JSONObject(new ObjectMapper().readValue(base64Decoded, Map.class));
                return AccessToken.parse(accessTokenJSON);
            }
            return null;
        } catch (final Exception e) {
            throw new IllegalArgumentException(e);
        }
    }
<p>This class is the user profile for sites using OpenID Connect protocol.</p>
<p>It is returned by the {@link org.pac4j.oidc.client.OidcClient}.</p>

@author Michael Remond
@version 1.7.0
pac4j-oidc/src/main/java/org/pac4j/oidc/profile/OidcProfile.java