@Override
    protected MultifactorAuthenticationTrustRecord saveInternal(final MultifactorAuthenticationTrustRecord record) {
        val entity = getHttpEntity(record);
        val response = restTemplate.exchange(getEndpointUrl(null), HttpMethod.POST, entity, Object.class);
        return response.getStatusCode() == HttpStatus.OK ? record : null;
    }
This is {@link RestMultifactorAuthenticationTrustStorage}.

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