@Audit(action = AuditableActions.TRUSTED_AUTHENTICATION,
        actionResolverName = AuditActionResolvers.TRUSTED_AUTHENTICATION_ACTION_RESOLVER,
        resourceResolverName = AuditResourceResolvers.TRUSTED_AUTHENTICATION_RESOURCE_RESOLVER)
    @Override
    public MultifactorAuthenticationTrustRecord save(final MultifactorAuthenticationTrustRecord record) {
        if (StringUtils.isBlank(record.getRecordKey())) {
            LOGGER.trace("Generating record key for record [{}]", record.getId());
            record.setRecordKey(generateKey(record));
        }
        LOGGER.debug("Storing authentication trust record for [{}]", record);
        return saveInternal(record);
    }
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