|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.security.auth.login.Configuration
com.sun.security.auth.login.ConfigFile
public class ConfigFile
This class represents a default implementation for
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:
java.security.Security
properties,
login.config.url.1, login.config.url.2, ...,
login.config.url.X. These properties are set
in the Java security properties file, which is located in the file named
<JAVA_HOME>/lib/security/java.security.
<JAVA_HOME> refers to the value of the java.home system property,
and specifies the directory where the JRE is installed.
Each property value specifies a 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.
LoginContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration |
---|
Configuration.Parameters |
Constructor Summary | |
---|---|
ConfigFile()
Create a new Configuration object. |
|
ConfigFile(URI uri)
Create a new Configuration object from the specified URI. |
Method Summary | |
---|---|
AppConfigurationEntry[] |
getAppConfigurationEntry(String applicationName)
Retrieve an entry from the Configuration using an application name as an index. |
void |
refresh()
Refresh and reload the Configuration by re-reading all of the login configurations. |
Methods inherited from class javax.security.auth.login.Configuration |
---|
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigFile()
Configuration
object.
public ConfigFile(URI uri)
Configuration
object from the specified URI.
uri
- Create a new Configuration object from this URI.Method Detail |
---|
public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName)
getAppConfigurationEntry
in class Configuration
applicationName
- the name used to index the Configuration.
public void refresh()
refresh
in class Configuration
SecurityException
- if the caller does not have permission
to refresh the Configuration.
|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved.