private long getMaxNumberOfAccessTokensAllowed(final OAuthRegisteredService registeredService) {
        return Optional.ofNullable(registeredService)
            .map(OAuthRegisteredService::getAccessTokenExpirationPolicy)
            .map(RegisteredServiceOAuthAccessTokenExpirationPolicy::getMaxActiveTokens)
            .orElseGet(() -> jwtBuilder.getCasProperties().getAuthn().getOauth().getAccessToken().getMaxActiveTokensAllowed());
    }
Default OAuth access token factory.

@author Jerome Leleu
@since 5.0.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/accesstoken/OAuth20DefaultAccessTokenFactory.java