@Override
    public boolean unlockAccount(final Credential credential) {
        val rest = casProperties.getAuthn().getPm().getRest();
        var result = true;
        if (StringUtils.isNotBlank(rest.getEndpointUrlAccountUnlock())) {
            val url = UriComponentsBuilder.fromUriString(rest.getEndpointUrlAccountUnlock())
                .queryParam("username", credential.getId()).build().toUriString();
            val request = new RequestEntity<>(HttpMethod.POST, URI.create(url));
            result = restTemplate.exchange(request, Boolean.class).getStatusCode().is2xxSuccessful();
        }
        return result;
    }
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