@Override
    public void updateSecurityQuestions(final PasswordManagementQuery query) {
        val rest = casProperties.getAuthn().getPm().getRest();
        if (StringUtils.isNotBlank(rest.getEndpointUrlSecurityQuestions())) {
            val url = UriComponentsBuilder.fromUriString(rest.getEndpointUrlSecurityQuestions())
                .queryParam("username", query.getUsername()).build().toUriString();
            val entity = new HttpEntity<>(query.getSecurityQuestions());
            restTemplate.exchange(url, HttpMethod.POST, entity, Boolean.class);
        }
    }
This is {@link RestPasswordManagementService}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-pm-rest/src/main/java/org/apereo/cas/pm/rest/RestPasswordManagementService.java