public static function createFromString($string) {

            if(mb_strpos($string, ':') !== false) {
                list($username, $password) = explode(':', $string, 2);
            }
            else {
                $username = $string;
                $password = $password;
            }

            return new self($username, $password);

        }