Lines Matching defs:Configuration

46  * A Configuration object is responsible for specifying which LoginModules
52 * <code>Configuration</code>. Subclass implementations of this class
54 * <code>Configuration</code> from any source such as files, databases,
73 * <p> Each entry in the <code>Configuration</code> is indexed via an
126 * <code>Configuration</code> is by using the following key-value pairing:
134 * <p> The following represents an example <code>Configuration</code> entry
146 * <p> This <code>Configuration</code> specifies that an application named,
166 * <p> There is only one Configuration object installed in the runtime at any
167 * given time. A Configuration object can be installed by calling the
168 * <code>setConfiguration</code> method. The installed Configuration object
171 * <p> If no Configuration object has been installed in the runtime, a call to
173 * Configuration implementation (a default subclass implementation of this
175 * The default Configuration implementation can be changed by setting the value
178 * Configuration subclass implementation. The Java security properties file
183 * <p> Application code can directly subclass Configuration to provide a custom
184 * implementation. In addition, an instance of a Configuration object can be
187 * See the Configuration section in the <a href=
188 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Configuration">
190 * for a list of standard Configuration types.
194 public abstract class Configuration {
196 private static Configuration configuration;
220 protected Configuration() { }
223 * Get the installed login Configuration.
227 * @return the login Configuration. If a Configuration object was set
228 * via the <code>Configuration.setConfiguration</code> method,
230 * Configuration object is returned.
233 * to retrieve the Configuration.
237 public static Configuration getConfiguration() {
243 synchronized (Configuration.class) {
260 (new PrivilegedExceptionAction<Configuration>() {
261 public Configuration run() throws ClassNotFoundException,
264 return (Configuration)Class.forName
275 ("Configuration error:" +
281 ("Configuration error: " +
292 * Set the login <code>Configuration</code>.
296 * @param configuration the new <code>Configuration</code>
299 * Permission to set the <code>Configuration</code>.
303 public static void setConfiguration(Configuration configuration) {
307 Configuration.configuration = configuration;
311 * Returns a Configuration object of the specified type.
315 * A new Configuration object encapsulating the
322 * @param type the specified Configuration type. See the Configuration
324 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Configuration">
326 * Documentation</a> for a list of standard Configuration types.
328 * @param params parameters for the Configuration, which may be null.
330 * @return the new Configuration object.
333 * to get a Configuration instance for the specified type.
347 public static Configuration getInstance(String type,
348 Configuration.Parameters params)
354 ("Configuration",
368 * Returns a Configuration object of the specified type.
370 * <p> A new Configuration object encapsulating the
378 * @param type the specified Configuration type. See the Configuration
380 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Configuration">
382 * Documentation</a> for a list of standard Configuration types.
384 * @param params parameters for the Configuration, which may be null.
388 * @return the new Configuration object.
391 * to get a Configuration instance for the specified type.
410 public static Configuration getInstance(String type,
411 Configuration.Parameters params,
422 ("Configuration",
437 * Returns a Configuration object of the specified type.
439 * <p> A new Configuration object encapsulating the
444 * @param type the specified Configuration type. See the Configuration
446 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Configuration">
448 * Documentation</a> for a list of standard Configuration types.
450 * @param params parameters for the Configuration, which may be null.
454 * @return the new Configuration object.
457 * to get a Configuration instance for the specified type.
472 public static Configuration getInstance(String type,
473 Configuration.Parameters params,
484 ("Configuration",
498 private static Configuration handleException(NoSuchAlgorithmException nsae)
508 * Return the Provider of this Configuration.
510 * <p> This Configuration instance will only have a Provider if it
511 * was obtained via a call to <code>Configuration.getInstance</code>.
514 * @return the Provider of this Configuration, or null.
523 * Return the type of this Configuration.
525 * <p> This Configuration instance will only have a type if it
526 * was obtained via a call to <code>Configuration.getInstance</code>.
529 * @return the type of this Configuration, or null.
538 * Return Configuration parameters.
540 * <p> This Configuration instance will only have parameters if it
541 * was obtained via a call to <code>Configuration.getInstance</code>.
544 * @return Configuration parameters, or null.
548 public Configuration.Parameters getParameters() {
554 * from this Configuration.
558 * @param name the name used to index the Configuration.
561 * from this Configuration, or null if there are no entries
568 * Refresh and reload the Configuration.
570 * <p> This method causes this Configuration object to refresh/reload its
572 * For example, if this Configuration object stores its entries in a file,
580 * to refresh its Configuration.
585 * This subclass is returned by the getInstance calls. All Configuration
588 private static class ConfigDelegate extends Configuration {
593 private Configuration.Parameters params;
596 String type, Configuration.Parameters params) {
605 public Configuration.Parameters getParameters() { return params; }
619 * This represents a marker interface for Configuration parameters.