private Optional<PasswordResetRequest> getPasswordResetRequestFrom(final RequestContext requestContext,
                                                                       final String transientTicket) {
        return Optional.ofNullable(transientTicket)
            .map(Unchecked.function(__ -> {
                val ticketRegistry = ticketRegistrySupport.getTicketRegistry();
                val passwordResetTicket = ticketRegistry.getTicket(transientTicket, TransientSessionTicket.class);
                passwordResetTicket.update();
                ticketRegistry.updateTicket(passwordResetTicket);
                val token = passwordResetTicket.getProperties().get(PasswordManagementService.PARAMETER_TOKEN).toString();
                PasswordManagementWebflowUtils.putPasswordResetToken(requestContext, token);
                return PasswordResetRequest.builder()
                    .passwordResetTicket(passwordResetTicket)
                    .username(passwordManagementService.parseToken(token))
                    .build();
            }));
    }
This is {@link VerifyPasswordResetRequestAction}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/VerifyPasswordResetRequestAction.java