@Override
        public boolean equals(Object obj) {

            if (this == obj)
                return true;

            if (obj == null)
                return false;

            if (getClass() != obj.getClass())
                return false;

            final UsedCode other = (UsedCode) obj;
            return username.equals(other.username) && code.equals(other.code);

        }
Returns the valid code given by the user when this UsedCode was
created.

@return
    The valid code given by the user.
extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/CodeUsageTrackingService.java