public String toPassword() {
        return Optional.ofNullable(this.password).map(String::new).orElse(null);
    }
To new password string.

@return the string
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/PasswordChangeRequest.java