Mark Rotteveel mark at
Wed May 29 17:25:29 UTC 2019

On 28-5-2019 20:54, Douglas Surber wrote:
> We have received a request to add the following method to java.sql.ConnectionBuilder.
>    /**
>     * Provide a GSSCredential to authenticate the connection with the server.
>     *
>     * @param credential used to authenticate the connection. Not null.
>     * @return this ConnectionBuilder
>     * @throws SQLException if an error occurs.
>     */
>    ConnectionBuilder gssCredential(org.ietf.jgss.GSSCredential credential) throws SQLException;
> Any thoughts?

It needs to be documented that this is an optional method, and the 
documentation must include a @throws SQLFeatureNotSupportedException to 
that effect. The default implementation should throw 

Addition of this to ConnectionBuilder, also warrants the question if a 
similar method should be added to javax.sql.CommonDataSource (although 
maybe lifetime of credentials are a factor here)

Also, looking at ConnectionBuilder, shouldn't it extend java.sql.Wrapper 
(eg to 'unwrap' to implementation specifics)?

BTW: In what form will these changes land, is there a JDBC 4.4 in the 
works, or will these just be an update to the API without a formal JDBC 
maintenance version?

Mark Rotteveel

More information about the jdbc-spec-discuss mailing list