User ID and password-based authentication

This section describes the information we need to establish a security context with user ID and password authentication.

To establish a security context using user ID and password-based authentication, we need the following information:

To create the security context, create a PDContext object as shown in Figure 1.

Figure 1. Creating a security context using user ID and password-based authentication

    // Create locale for US English
    
    Locale myLocale = new Locale("ENGLISH", "US");
    
    /*
    Create a security context using our locale. Need to supply a user ID with
    administrative privileges in Verify Access (like sec_master) along with
    its password and a URL of the form file:/// to the configuration file created
    by the SvrSslCfg class.
    */
    
    PDContext myContext = new PDContext(myLocale,
    adminName,
    adminPassword,
    domain,
    configFileURL);

The contents of the configuration file created by the Java SvrSslCfg class is not externalized and is subject to change without notice. Users must not use the information in the configuration file directly.

Parent topic: Establishing a security context