org.openmdx.security.auth.context.spi
Class URLConfiguration

java.lang.Object
  extended by javax.security.auth.login.Configuration
      extended by org.openmdx.security.auth.context.spi.URLConfiguration

public class URLConfiguration
extends Configuration

This class represents an implementation for javax.security.auth.login.Configuration.

This object provides the runtime login configuration acquired from a single java.net.URL.

The configuration syntax supported by this implementation is exactly that syntax specified in the javax.security.auth.login.Configuration class.

See Also:
LoginContext

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters
 
Field Summary
protected static boolean EXPAND_PROPERTIES
          Defines whether system properties should be expanded
 
Constructor Summary
URLConfiguration(URL source, Map options)
          Constructor
 
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.
 String toString()
           
 
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, wait, wait, wait
 

Field Detail

EXPAND_PROPERTIES

protected static final boolean EXPAND_PROPERTIES
Defines whether system properties should be expanded

Constructor Detail

URLConfiguration

public URLConfiguration(URL source,
                        Map options)
                 throws IOException
Constructor

Parameters:
source - the Confuguration's source
options - the options shared by all LoginModules
Throws:
IOException
Method Detail

getAppConfigurationEntry

public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName)
Retrieve an entry from the Configuration using an application name as an index.

Specified by:
getAppConfigurationEntry in class Configuration
Parameters:
applicationName - the name used to index the Configuration.
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.

refresh

public void refresh()
Refresh and reload the Configuration by re-reading all of the login configurations.

Overrides:
refresh in class Configuration
Throws:
SecurityException - if the caller does not have permission to refresh the Configuration.

toString

public String toString()
Overrides:
toString in class Object


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.