public String getPassword(KeeperRecord record) {

        Password passwordField = getField(record, Password.class, PASSWORD_LABEL_PATTERN);
        if (passwordField != null)
            return getSingleStringValue(passwordField.getValue());

        HiddenField hiddenField = getField(record, HiddenField.class, PASSWORD_LABEL_PATTERN);
        if (hiddenField != null)
            return getSingleStringValue(hiddenField.getValue());

        return null;

    }
Returns the password associated with the given record. Both standard and
custom fields are searched. Only "Password" and "Hidden" field types are
considered. Custom fields must additionally have the label "password"
(case-insensitive).

@param record
    The record to retrieve the password from.

@return
    The password associated with the given record, or null if the record
    has no associated password.
extensions/guacamole-vault/modules/guacamole-vault-ksm/src/main/java/org/apache/guacamole/vault/ksm/secret/KsmRecordService.java