]> source.dussan.org Git - jgit.git/commit
Adds GSSManager factory class, to be used for SPNEGO HTTP authentication 86/22486/2
authorLaurent Goujon <lgoujon@twitter.com>
Mon, 24 Feb 2014 21:01:40 +0000 (13:01 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 21 May 2014 15:15:42 +0000 (10:15 -0500)
commitff9c194b8a3b8f21b46d77b491f5372365f69b43
treecd214adab2c8ee1de1a510b94495d979cb75c7f6
parent6d724dcd3355f09e3450e417cf173fcafaee9e08
Adds GSSManager factory class, to be used for SPNEGO HTTP authentication

Adds a factory class for GSSManager. GSSManager is already a factory class but
it doesn't work well with SPNEGO HTTP authentication unless the
javax.security.auth.useSubjectCredsOnly system property is set to false.

On Sun JDK, Sun GSSManagerImpl can be configured directly for SPNEGO auth
(without setting any system property). For a better experience, the class
availability is detected by reflection and used instead.

Detection is only done once, and fallbacks to org.ietf.jgss.GSSManager.

Bug: 428836
Change-Id: Idb9123d1f4013966919db43043ec959d4b133ae2
Signed-off-by: Laurent Goujon <lgoujon@twitter.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/util/GSSManagerFactory.java [new file with mode: 0644]