protected String generateKey(final MultifactorAuthenticationTrustRecord r) {
        val key = keyGenerationStrategy.generate(r);
        return cipherExecutor.encode(key);
    }
This is {@link BaseMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/authentication/storage/BaseMultifactorAuthenticationTrustStorage.java