18.4. Enable Kerberos authentication
For Kerberos authentication, if the user running the program is already authenticated, for example, if they are using
kinit
, there is no need to supply a user name or password. If you are using another form of authentication, or are not already authenticated with Kerberos, you can supply these as connection options:
connection.setOption("username", "mick"); connection.setOption("password", "pa$$word");