Java configuration file location

Specifying the location of the configuration file

This topic describes how the Java and .NET frameworks locate the Access Control configuration file.

A sample login configuration file (named Login.conf ) is provided in the %ENDECA_CONF%\etc directory ( $ENDECA_CONF/etc on UNIX). You can modify this file (including changing the file name) and store it in any directory.

How the Java framework finds the configuration file

In a Java framework, JAAS finds the login configuration file by examining the value of the java.security.auth.login.config property within the Java JVM in which the Access Control System is running. If this property is not set, the system will look for a file named .java.login.config in the home directory of the user who started the JVM.

How you set the java.security.auth.login.config property depends on the specifics of your application server. A common method to specify the configuration file is to use a JVM -Djava.security.auth.login.config command-ine argument, as in this example:

java -Djava.security.auth.login.config=Login.conf weblogic.server

A second method is to edit the JAVA_HOME/jre/lib/security/java.security file and add the name of the login configuration file, as in this Windows example:

# Default login configuration file login.config.url.1=file:C:/EndecaProjects/SSL/Login.conf

Note that even though the path is on Windows, you must use forward slashes because the path is actually a URL.

Читайте также:  Creating excel file in php

Please consult your application server documentation for full details on how to set this property.

How the .NET framework finds the configuration file

The .NET Framework finds the login configuration file by examining the value of a registry setting, which is set by the Endeca installation program to the %ENDECA_CONF%\etc\Login.conf path.

Endeca Platform Services Security Guide · Version 6.0.3 · June 2012

Источник

Specifying the location of the configuration file

This topic describes how the Java and .NET frameworks locate the Access Control configuration file.

A sample login configuration file (named Login.conf ) is provided in the %ENDECA_CONF%\etc directory ( $ENDECA_CONF/etc on UNIX). You can modify this file (including changing the file name) and store it in any directory.

How the Java framework finds the configuration file

In a Java framework, JAAS finds the login configuration file by examining the value of the java.security.auth.login.config property within the Java JVM in which the Access Control System is running. If this property is not set, the system will look for a file named .java.login.config in the home directory of the user who started the JVM.

How you set the java.security.auth.login.config property depends on the specifics of your application server. A common method to specify the configuration file is to use a JVM -Djava.security.auth.login.config command-ine argument, as in this example:

java -Djava.security.auth.login.config=Login.conf weblogic.server

A second method is to edit the JAVA_HOME/jre/lib/security/java.security file and add the name of the login configuration file, as in this Windows example:

# Default login configuration file login.config.url.1=file:C:/EndecaProjects/SSL/Login.conf

Note that even though the path is on Windows, you must use forward slashes because the path is actually a URL.

Please consult your application server documentation for full details on how to set this property.

How the .NET framework finds the configuration file

The .NET Framework finds the login configuration file by examining the value of a registry setting, which is set by the Endeca installation program to the %ENDECA_CONF%\etc\Login.conf path.

Oracle Endeca Platform Services Security Guide Version 6.1.3 · June 2012

Источник

20 Installing the JDK and the JRE with a Configuration File

You can use a configuration file to standardize JDK and JRE installations and specify options that are not available on the command line. An installer configuration file is an alternative to, and extension of, options specified on the installer command line.

Note: Windows, macOS, Linux, and Solaris command-line installers support the configuration file, but not every operating system supports all configuration file options.

This page has these sections:

Using a Configuration File

If you are installing the JRE or JDK on Windows, use the INSTALLCFG command-line option to specify a configuration file:

installer INSTALLCFG= configuration_file_path

  • installer is the installer base file name, for example, jre-8u211-windows-x64.exe or jdk-8u211-windows-x64.exe .
  • configuration_file_path is the path to the configuration file.

If you are installing the JRE or JDK on Solaris, Linux, or macOS, create a configuration file name named /etc/java/config/jre-install.properties . When you launch the JRE or JDK installer, it looks for a configuration file with this specific path and name.

Configuration File Options

The following table lists the installer configuration file options that apply for each operating system.

  • You may substitute the value Enable for 1 and the value Disable for 0 .
  • You may use the same options at the command line when running the JDK or JRE Windows Offline Installer. See «Command-Line Installation».

Table 20-1 Configuration File Options

Note: Applicable to online and offline installers only (files and wrappers).

Enables uninstallation of existing out-of-date JREs during JRE install.

Using REMOVEOUTOFDATEJRES=0 leaves all out-of-date Java versions on the system. Using REMOVEOUTOFDATEJRES=1 removes all out-of-date Java versions from the system.

Sample Configuration File

The following is a sample JRE configuration file for Windows. It specifies the following:

  • Perform a silent install.
  • Install the JRE in the directory C:\java\jre .
  • Set the security level for unsigned Java applications running in a browser to very high.

Example 20-1 Sample Configuration File for Windows

INSTALL_SILENT=Enable INSTALLDIR=C:\java\jre WEB_JAVA_SECURITY_LEVEL=VH

System Runtime Configuration File

After installing the JDK or JRE with a configuration file, the installer saves the file (with a subset of options used during install) in one of the following locations in your computer, depending on your operating system:

  • Windows: %ALLUSERSPROFILE%\Oracle\Java\java.settings.cfg The value of the environment variable %ALLUSERSPROFILE% is typically C:\ProgramData .
  • Solaris and Linux: /etc/Oracle/Java/java.settings.cfg
  • macOS: /Library/Application/Support/Oracle/Java/java.settings.cfg

Источник

Оцените статью