static JsonWebKeySet generateJsonWebKeySet(final OidcProperties oidcProperties) {
        val currentKeySigning = OidcJsonWebKeystoreGeneratorService.generateJsonWebKey(
            OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.CURRENT, oidcProperties, OidcJsonWebKeyUsage.SIGNING);
        val currentKeyEncryption = OidcJsonWebKeystoreGeneratorService.generateJsonWebKey(
            OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.CURRENT, oidcProperties, OidcJsonWebKeyUsage.ENCRYPTION);

        val futureKeySigning = OidcJsonWebKeystoreGeneratorService.generateJsonWebKey(
            OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.FUTURE, oidcProperties, OidcJsonWebKeyUsage.SIGNING);
        val futureKeyEncryption = OidcJsonWebKeystoreGeneratorService.generateJsonWebKey(
            OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.FUTURE, oidcProperties, OidcJsonWebKeyUsage.ENCRYPTION);

        return new JsonWebKeySet(currentKeySigning, currentKeyEncryption, futureKeySigning, futureKeyEncryption);
    }
Generate json web key set json web key set.

@param oidcProperties the oidc properties
@return the json web key set
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/generator/OidcJsonWebKeystoreGeneratorService.java