@Override
    public Map<String, String> getAttributes() {

        // Create independent, mutable copy of attributes
        Map<String, String> attributes = new HashMap<>(super.getAttributes());
        
        if (!attributes.containsKey(TOTP_KEY_DISABLED_ATTRIBUTE_NAME))
            attributes.put(TOTP_KEY_DISABLED_ATTRIBUTE_NAME, null);

        // Replace secret key with simple boolean attribute representing
        // whether a key has been generated at all
        String secret = attributes.remove(TOTP_KEY_SECRET_ATTRIBUTE_NAME);
        if (secret != null && !secret.isEmpty())
            attributes.put(TOTP_KEY_SECRET_GENERATED_ATTRIBUTE_NAME, TRUTH_VALUE);

        return attributes;

    }
Returns the User object wrapped by this TOTPUser.

@return
    The wrapped User object.
extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/TOTPUser.java