@Override
    public String encode(final OAuthRegisteredService registeredService, final JwtClaims claims) throws Throwable {
        LOGGER.debug("Generated claims to put into token are [{}]", claims.toJson());
        return signTokenIfNecessary(claims, registeredService);
    }
This is {@link UmaRequestingPartyTokenSigningService}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/rpt/UmaRequestingPartyTokenSigningService.java