@Exported public class ConfigFile extends Configuration
This object stores the runtime login configuration representation,
and is the amalgamation of multiple static login
configurations that resides in files.
The algorithm for locating the login configuration file(s) and reading their
information into this
Configuration object is:
URLpointing to a login configuration file to be loaded. Read in and load each configuration.
java.lang.Systemproperty java.security.auth.login.config may also be set to a
URLpointing to another login configuration file (which is the case when a user uses the -D switch at runtime). If this property is defined, and its use is allowed by the security property file (the Security property, policy.allowSystemProperty is set to true), also load that login configuration.
The configuration syntax supported by this implementation
is exactly that syntax specified in the
|Constructor and Description|
Create a new
Create a new
|Modifier and Type||Method and Description|
Retrieve an entry from the
Refresh and reload the
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
SecurityException- if the
Configurationcan not be initialized
public AppConfigurationEntry getAppConfigurationEntry(String applicationName)
Configurationusing an application name as an index.
applicationName- the name used to index the
AppConfigurationEntrywhich correspond to the stacked configuration of
LoginModules for this application, or null if this application has no configured
Copyright © 1998, 2022, Oracle and/or its affiliates. All rights reserved.