public static EncodableCipher<String, String> toEncodableCipher(final OAuth20ConfigurationContext configurationContext,
                                                                    final RegisteredService registeredService,
                                                                    final OAuth20Token token,
                                                                    final Service service,
                                                                    final boolean forceEncodeAsJwt) {
        return new OAuth20JwtAccessTokenEncodableCipher(configurationContext, registeredService,
            token, service, configurationContext.getCasProperties().getServer().getPrefix(), forceEncodeAsJwt);
    }
To encodable cipher.

@param configurationContext the configuration context
@param registeredService    the registered service
@param token          the access token
@param service              the service
@param forceEncodeAsJwt     the force encode as jwt
@return the encodable cipher
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20JwtAccessTokenEncoder.java