public String toPassword() {
        return FunctionUtils.doIfNull(this.password, () -> null, () -> new String(this.password)).get();
    }
Convert to string-friendly password.

@return the string
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/credential/UsernamePasswordCredential.java