@Override
    public OAuth20IntrospectionAccessTokenResponse generate(final String accessTokenId, final OAuth20Token accessToken) {
        var introspect = new OAuth20IntrospectionAccessTokenResponse();
        introspect.setScope("CAS");
        introspect.setActive(accessToken != null && !accessToken.isExpired());
        if (introspect.isActive()) {
            return collectIntrospectionDetails(introspect, accessToken).setToken(accessTokenId);
        }
        return introspect;
    }
This is {@link OAuth20DefaultIntrospectionResponseGenerator}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/introspection/OAuth20DefaultIntrospectionResponseGenerator.java