UltraLite Static Java User's Guide
Adding Non Data Access Features to UltraLite Applications
Adding user authentication to your application
Enabling user authentication requires the application to supply a valid UltraLite user ID and password when connecting to the UltraLite database. If you do not explicitly enable user authentication, UltraLite does not authenticate users.
To enable user authentication (Java)
Call the JdbcSupport.enableUserAuthentication method before creating a new database object: For example:
JdbcSupport.enableUserAuthentication(); java.util.Properties p = new java.util.Properties(); p.put( "persist", "file" ); SampleDB db = new SampleDB( p );
Once you have enabled user authentication, you must add user management code to your application. For more information, see Managing user IDs and passwords.