private static void processClientSecretExpiration(final OidcConfigurationContext context,
                                                      final OidcRegisteredService registeredService) {
        val clientSecretExp = Beans.newDuration(context.getCasProperties()
            .getAuthn().getOidc().getRegistration().getClientSecretExpiration()).toSeconds();
        if (clientSecretExp > 0 && registeredService.getClientSecretExpiration() <= 0) {
            val currentTime = ZonedDateTime.now(ZoneOffset.UTC);
            val expirationDate = currentTime.plusSeconds(clientSecretExp);
            LOGGER.debug("Client secret shall expire at [{}] while now is [{}]", expirationDate, currentTime);
            registeredService.setClientSecretExpiration(expirationDate.toEpochSecond());
        }
    }
This is {@link OidcDefaultClientRegistrationRequestTranslator}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcDefaultClientRegistrationRequestTranslator.java