Do not show URIish passwords in TransportExceptions
commit5607fd5edb4a7d2815d0ea1ad0aceb3605146078
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:12 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:21 +0000 (1 00:46 +0200)
tree6962802e43f93e43a413a815c2bcd7f96528685c
parent4d98e510f2a3ae24c0110b9c08edf7c75f9eac32
Do not show URIish passwords in TransportExceptions

When construction a transport exception the message may be shown
on screen.  If a password was in the URIish then we may wind up
showing the user's password, perhaps while there is someone else
looking over the user's shoulder and reading their monitor.  By
setting the field to null we avoid displaying it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/errors/TransportException.java