Creating an Instance of GSSManager

Create an instance of GSSManager and pass it to the GSSMANAGER_CLASS property.

  1. Instantiate a GSSManager in your application code:
    GSSManager gssMan =  new com.dstc.security.kerberos.gssapi.GSSManager();

    This example uses the default constructor with no arguments. You can use other vendor-supplied constructors, which allow you to set various configuration options.

  2. Pass the new GSSManager instance into the GSSMANAGER_CLASS connection property:
    Properties props = new Properties();
    props.put("GSSMANAGER_CLASS", gssMan);
  3. Use these connection properties, including GSSMANAGER_CLASS, in your connection:
    Connection conn = DriverManager.getConnection (url, props);