Setting Up the GSSMANAGER_CLASS Property

Use a vendor implementation of GSSManager with jConnect by setting the GSSMANAGER_CLASS connection property.

There are two ways to set this property:

  • Create an instance of GSSManager, and set this instance as the value of the GSSMANAGER_CLASS property.

  • Set the value of the GSSMANAGER_CLASS property as a string, specifying the fully qualified class name of the GSSManager object. jConnect uses this string to call Class.forName().newInstance() and casts the returned object as a GSSManager class.

In either case, the application CLASSPATH variable must include the location of the classes and .jar files for the vendor implementation.

Note: If you do not set the GSSMANAGER_CLASS connection property, jConnect uses the org.ietf.jgss.GSSManager.getInstance method to load the default Java GSSManager implementation.

When you use the GSSMANAGER_CLASS connection property to pass in a fully qualified class name, jConnect calls the no-argument constructor for the GSSManager. This instantiates a GSSManager that is in the default configuration for the vendor implementation, so you do not have control over the exact configuration of the GSSManager object. If you create your own instance of GSSManager, you can use constructor arguments to set configuration options.