protected String encodeOAuthToken(final OAuth20Token token,
                                      final OAuth20AccessTokenResponseResult result) {
        val cipher = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext.getObject(), result, token);
        return cipher.encode(token.getId(), new Object[]{token, result});
    }
This is {@link OAuth20DefaultAccessTokenResponseGenerator}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java