Top Description Inners Constructors Methods
org.eclipse.jgit.util

public abstract Class GSSManagerFactory

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.util.GSSManagerFactory.DefaultGSSManagerFactory, org.eclipse.jgit.util.GSSManagerFactory.SunGSSManagerFactory
Imports
java.lang.reflect.Constructor, .InvocationTargetException, java.net.URL, org.ietf.jgss.GSSManager

Factory to detect which GSSManager implementation should be used.
Since
3.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
GSSManagerFactory.DefaultGSSManagerFactory

DefaultGSSManagerFactory uses @link GSSManager#getInstance() but you might need to set javax.security.auth.useSubjectCredsOnly system property to false for authentication to work.

private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static GSSManagerFactory

Returns:

detected GSSManager factory
detect
()

Auto-detects the GSSManager factory to use based on system.

public abstract GSSManager

Returns:

a GSSManager instance
newInstance
(URL
the repository url
url
)

Returns a GSS Manager instance for the provided url

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GSSManagerFactoryback to summary
public GSSManagerFactory()

Method Detail

detectback to summary
public static GSSManagerFactory detect()

Auto-detects the GSSManager factory to use based on system.

Returns:GSSManagerFactory

detected GSSManager factory

newInstanceback to summary
public abstract GSSManager newInstance(URL url)

Returns a GSS Manager instance for the provided url

Parameters
url:URL

the repository url

Returns:GSSManager

a GSSManager instance

org.eclipse.jgit.util back to summary

private Class GSSManagerFactory.DefaultGSSManagerFactory

extends GSSManagerFactory
Class Inheritance

DefaultGSSManagerFactory uses @link GSSManager#getInstance() but you might need to set javax.security.auth.useSubjectCredsOnly system property to false for authentication to work.

Field Summary

Modifier and TypeField and Description
private static final GSSManager

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public GSSManager
newInstance(URL
the repository url
url
)

Implements abstract org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Returns a GSS Manager instance for the provided url

Inherited from org.eclipse.jgit.util.GSSManagerFactory:
detect

Field Detail

INSTANCEback to summary
private static final GSSManager INSTANCE

Constructor Detail

DefaultGSSManagerFactoryback to summary
private DefaultGSSManagerFactory()

Method Detail

newInstanceback to summary
public GSSManager newInstance(URL url)

Implements abstract org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Doc from org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Returns a GSS Manager instance for the provided url

Parameters
url:URL

the repository url

Returns:GSSManager

a GSSManager instance

Annotations
@Override
org.eclipse.jgit.util back to summary

private Class GSSManagerFactory.SunGSSManagerFactory

extends GSSManagerFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static Constructor<?>
private static Constructor<?>
private static Constructor<?>
private static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
init()

public static boolean

Returns:

true if it is supported
isSupported
()

Detects if SunGSSManagerProvider is supported by the system

public GSSManager
newInstance(URL
the repository url
url
)

Implements abstract org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Returns a GSS Manager instance for the provided url

Inherited from org.eclipse.jgit.util.GSSManagerFactory:
detect

Field Detail

GSS_MANAGER_IMPL_CONSTRUCTORback to summary
private static Constructor<?> GSS_MANAGER_IMPL_CONSTRUCTOR
HTTP_CALLER_CONSTRUCTORback to summary
private static Constructor<?> HTTP_CALLER_CONSTRUCTOR
HTTP_CALLER_INFO_CONSTRUCTORback to summary
private static Constructor<?> HTTP_CALLER_INFO_CONSTRUCTOR
IS_SUPPORTEDback to summary
private static boolean IS_SUPPORTED

Constructor Detail

SunGSSManagerFactoryback to summary
private SunGSSManagerFactory()

Method Detail

initback to summary
private static void init() throws ClassNotFoundException, NoSuchMethodException
isSupportedback to summary
public static boolean isSupported()

Detects if SunGSSManagerProvider is supported by the system

Returns:boolean

true if it is supported

newInstanceback to summary
public GSSManager newInstance(URL url)

Implements abstract org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Doc from org.eclipse.jgit.util.GSSManagerFactory.newInstance.

Returns a GSS Manager instance for the provided url

Parameters
url:URL

the repository url

Returns:GSSManager

a GSSManager instance

Annotations
@Override