# File lib/openid/trustroot.rb, line 95
    def validate_url(url)
      parts = TrustRoot._parse_url(url)
      return false if parts.nil?

      proto, host, port, path = parts
      
      return false unless proto == @proto
      return false unless port == @port
      return false unless path.index(@path) == 0

      if @wildcard
        return (not host.rindex(@host).nil?)
      else
        return (host == @host)
      end
    end