# User authentication and authorization examples

This section provides examples on using user authentication and authorization in Derby in either a client/server environment or in an embedded environment.

- User authentication example in a client/server environment
  In this example, Derby is running in a user-designed application server.
- User authentication example in a single-user, embedded environment
  In this example, Derby is embedded in a single-user application that is deployed in a number of different and potentially insecure ways.
- User authentication examples using SQL authorization
  These examples show how to use SQL authorization in conjunction with Derby's built-in user authentication and user authorization.

Parent topic: Derby and Security
Related concepts
Configuring security for your environment
Working with user authentication
Encrypting databases on disk
Signed jar files
Notes on the Derby security features
Running Derby under a security manager