@Override
    protected String encodeOAuthToken(final OAuth20Token accessToken,
                                      final OAuth20AccessTokenResponseResult result) {
        val oidcRegisteredService = Optional.ofNullable(result.getRegisteredService())
            .filter(OidcRegisteredService.class::isInstance)
            .map(OidcRegisteredService.class::cast);
        val oidcIssuer = configurationContext.getObject().getIssuerService().determineIssuer(oidcRegisteredService);
        val cipher = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext.getObject(), result, accessToken, oidcIssuer);
        return cipher.encode(accessToken.getId(), new Object[]{accessToken, result});
    }
This is {@link OidcAccessTokenResponseGenerator}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/OidcAccessTokenResponseGenerator.java