javax.security.auth.login.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:
URL pointing to a
login configuration file to be loaded. Read in and load
each configuration.
java.lang.System property
java.security.auth.login.config
may also be set to a URL pointing 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
javax.security.auth.login.Configuration class.
javax.security.auth.login.LoginContext , security properties
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigFile. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AppConfigurationEntry[] | getAppConfigurationEntry(String appName)
Implements abstract javax. Retrieve the AppConfigurationEntries for the specified |
| private static URL | |
| public synchronized void | refresh()
Overrides javax. Refresh and reload the Configuration. |
| spi | back to summary |
|---|---|
| private final ConfigFile. | |
| ConfigFile | back to summary |
|---|---|
| public ConfigFile() | |
| getAppConfigurationEntry | back to summary |
|---|---|
| public AppConfigurationEntry[] getAppConfigurationEntry(String appName) Implements abstract javax. Doc from javax. Retrieve the AppConfigurationEntries for the specified
| |
| newURL | back to summary |
|---|---|
private static URL newURL(String spec) throws MalformedURLException
| |
| refresh | back to summary |
|---|---|
| public synchronized void refresh() Overrides javax. Doc from javax. Refresh and reload the Configuration. This method causes this Configuration object to refresh/reload its
contents in an implementation-dependent manner.
For example, if this Configuration object stores its entries in a file,
calling The default implementation of this method does nothing. This method should be overridden if a refresh operation is supported by the implementation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private static final Debug | |
| private static final Debug | |
| private boolean | |
| private int | |
| private int | |
| private StreamTokenizer | |
| private URL |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AppConfigurationEntry[] | Returns: an array of AppConfigurationEntries which correspond to the stacked configuration of LoginModules for this application, or null if this application has no configured LoginModules.the name used to index the Configuration. applicationName)Implements abstract javax. Retrieve an entry from the Configuration using an application name as an index. |
| public synchronized void | engineRefresh()
Overrides javax. Refresh and reload the Configuration by re-reading all the login configurations. |
| private String | |
| private InputStream | |
| private void | |
| private void | |
| private IOException | |
| private String | |
| private int | |
| private void | |
| private boolean | |
| private void |
| configuration | back to summary |
|---|---|
| private Map<String, List<AppConfigurationEntry>> configuration | |
| debugConfig | back to summary |
|---|---|
| private static final Debug debugConfig | |
| debugParser | back to summary |
|---|---|
| private static final Debug debugParser | |
| expandProp | back to summary |
|---|---|
| private boolean expandProp | |
| linenum | back to summary |
|---|---|
| private int linenum | |
| lookahead | back to summary |
|---|---|
| private int lookahead | |
| st | back to summary |
|---|---|
| private StreamTokenizer st | |
| url | back to summary |
|---|---|
| private URL url | |
| Spi | back to summary |
|---|---|
| public Spi() Creates a new
| |
| Spi | back to summary |
|---|---|
| public Spi(URI uri) Creates a new
| |
| Spi | back to summary |
|---|---|
| public Spi(final Configuration. | |
| engineGetAppConfigurationEntry | back to summary |
|---|---|
| public AppConfigurationEntry[] engineGetAppConfigurationEntry(String applicationName) Implements abstract javax. Retrieve an entry from the Configuration using an application name as an index.
| |
| engineRefresh | back to summary |
|---|---|
| public synchronized void engineRefresh() Overrides javax. Refresh and reload the Configuration by re-reading all the login configurations.
| |
| expand | back to summary |
|---|---|
| private String expand(String value) throws ExpandException, IOException | |
| getInputStream | back to summary |
|---|---|
| private InputStream getInputStream(URL url) throws IOException | |
| init | back to summary |
|---|---|
| private void init() throws IOException Read and initialize the entire login Configuration from the configured URL.
| |
| init | back to summary |
|---|---|
| private void init(URL config, Map<String, List<AppConfigurationEntry>> newConfig) throws IOException | |
| ioException | back to summary |
|---|---|
| private IOException ioException(String resourceKey, Object... args) | |
| match | back to summary |
|---|---|
| private String match(String expect) throws IOException | |
| nextToken | back to summary |
|---|---|
| private int nextToken() throws IOException | |
| parseLoginEntry | back to summary |
|---|---|
| private void parseLoginEntry(Map<String, List<AppConfigurationEntry>> newConfig) throws IOException | |
| peek | back to summary |
|---|---|
| private boolean peek(String expect) | |
| readConfig | back to summary |
|---|---|
| private void readConfig(Reader reader, Map<String, List<AppConfigurationEntry>> newConfig) throws IOException | |