How to provide non-string values with key hibernate.connection.<propertyName> to JDBC connection properties with hibernate

non-string properties could be easily provided to JDBC connection properties like
GSSCredential gcred = getFromKrbLogin();
Properties dProperties = new Properties();
properties.put(“GSSCredential” , gcred );
Connection connection = DriverManager.getConnection(connectionString, dProperties);

but this is not possible to provide non-string value with hibernate.connection.GSSCredential key when we configure with Ejb3Configuration and add properties which want to pass to DriverManager. Any way to provide non-string connection properties with key hibernate.connection.GSSCredential to JDBC with hibernate?

It would be great If get some help at this point.