Passing String to GSSMANAGER_CLASS

Pass string to GSSMANAGER_CLASS in an application.

  1. Ceate a string specifying the fully qualified class name of the GSSManager object. For example:
    String gssManClass = "com.dstc.security.kerberos.gssapi.GSSManager";
  2. Pass the string to the GSSMANAGER_CLASS connection property. For example:
    Properties props = new Properties();
    props.put("GSSMANAGER_CLASS", gssManClass);
  3. Use these connection properties, including GSSMANAGER_CLASS, in your connection. For example:
    Connection conn = DriverManager.getConnection (url, props);