public class ProxyConfigurationProvider extends ConfigurationProvider
Configuration data is read from an XML file, whose location is given by
the moa.id.configuration system property.
This class implements the Singleton pattern. The reload()
method can be used to update the configuration data. Therefore, it is not
guaranteed that consecutive calls to getInstance() will return
the same ProxyConfigurationProvider all the time. During the
processing of a web service request, the current
TransactionContext should be used to obtain the
ProxyConfigurationProvider local to that request.
chainingModes, CONFIG_PROPERTY_NAME, defaultChainingMode, DIRECTORY_CERTSTORE_PARAMETER_PROPERTY, genericConfiguration, rootConfigFileDir, TRUST_MANAGER_REVOCATION_CHECKING, trustedCACertificates| Constructor and Description |
|---|
ProxyConfigurationProvider(String fileName)
Constructor for ProxyConfigurationProvider.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionParameter |
getAuthComponentConnectionParameter()
Return a bean containing all information about the ProxyComponent
|
static ProxyConfigurationProvider |
getInstance()
Return the single instance of configuration data.
|
OAProxyParameter |
getOnlineApplicationParameter(String oaURL)
Provides configuration information regarding the online application behind
the given URL, relevant to the MOA-ID Proxy component.
|
OAProxyParameter[] |
getOnlineApplicationParameters()
Build an array of OnlineApplication Parameter Beans containing all
information about the proxy component of the online application
|
static ProxyConfigurationProvider |
reload()
Reload the configuration data and set it if successful.
|
getChainingMode, getGenericConfiguration, getGenericConfigurationParameter, getRootConfigFileDir, getTrustedCACertificatespublic ProxyConfigurationProvider(String fileName) throws ConfigurationException
ConfigurationExceptionpublic static ProxyConfigurationProvider getInstance() throws ConfigurationException
ConfigurationExceptionpublic static ProxyConfigurationProvider reload() throws ConfigurationException
ConfigurationException - Failure to load the configuration data.public ConnectionParameter getAuthComponentConnectionParameter()
public OAProxyParameter[] getOnlineApplicationParameters()
public OAProxyParameter getOnlineApplicationParameter(String oaURL)
oaURL - URL requested for an online applicationOAProxyParameter, or null
if none is applicableCopyright © 2016. All Rights Reserved.