public class XMLLoginConfigImpl extends Configuration implements Serializable, ApplicationPolicyRegistration
Configuration
,
Serialized FormConfiguration.Parameters
Modifier and Type | Field and Description |
---|---|
protected URL |
loginConfigURL
The URL to the XML or Sun login configuration
|
protected Configuration |
parentConfig
The inherited configuration we delegate to
|
Modifier and Type | Method and Description |
---|---|
void |
addAppConfig(String appName,
AppConfigurationEntry[] entries)
Add an application configuration
|
void |
addApplicationPolicy(String appName,
ApplicationPolicy aPolicy)
Register an application policy
|
void |
clear() |
void |
copy(PolicyConfig policyConfig) |
AppConfigurationEntry[] |
getAppConfigurationEntry(String appName) |
ApplicationPolicy |
getApplicationPolicy(String domainName)
Get the Application Policy given the security domain name
|
BaseAuthenticationInfo |
getAuthenticationInfo(String domainName)
Method that returns the parsed AuthenticationInfo needed by the JASPI framework until a seperate Configuration
mechanism for JASPI is established
|
URL |
getConfigURL()
Set the URL of the XML login configuration file that should be loaded by this mbean on startup.
|
static XMLLoginConfigImpl |
getInstance()
Obtains a reference to the singleton.
|
boolean |
getValidateDTD()
Get whether the login config xml document is validated againsts its DTD
|
void |
loadConfig()
Called to try to load the config from the java.security.auth.login.config property value when there is no
loginConfigURL.
|
protected String[] |
loadConfig(URL config) |
void |
refresh() |
void |
removeAppConfig(String appName)
Deprecated.
|
boolean |
removeApplicationPolicy(String appName)
Unregister an Application Policy for a security domain
|
void |
setConfigResource(String resourceName) |
void |
setConfigURL(URL loginConfigURL)
Set the URL of the XML login configuration file that should be loaded by this mbean on startup.
|
void |
setParentConfig(Configuration parentConfig) |
void |
setValidateDTD(boolean flag)
Set whether the login config xml document is validated againsts its DTD
|
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
protected URL loginConfigURL
protected Configuration parentConfig
public static XMLLoginConfigImpl getInstance()
Obtains a reference to the singleton.
XMLLoginConfigImpl
instance.public void refresh()
refresh
in class Configuration
public AppConfigurationEntry[] getAppConfigurationEntry(String appName)
getAppConfigurationEntry
in class Configuration
public URL getConfigURL()
public void setConfigURL(URL loginConfigURL)
public void setConfigResource(String resourceName) throws IOException
IOException
public void setParentConfig(Configuration parentConfig)
public boolean getValidateDTD()
public void setValidateDTD(boolean flag)
public void addApplicationPolicy(String appName, ApplicationPolicy aPolicy)
ApplicationPolicyRegistration
addApplicationPolicy
in interface ApplicationPolicyRegistration
appName
- Security Domain NameaPolicy
- Application Policy to registerApplicationPolicyRegistration.addApplicationPolicy(String, ApplicationPolicy)
public void addAppConfig(String appName, AppConfigurationEntry[] entries)
public void copy(PolicyConfig policyConfig)
@Deprecated public void removeAppConfig(String appName)
appName
- removeApplicationPolicy(String)
public ApplicationPolicy getApplicationPolicy(String domainName)
ApplicationPolicyRegistration
getApplicationPolicy
in interface ApplicationPolicyRegistration
domainName
- security domain nameApplicationPolicyRegistration.getApplicationPolicy(String)
public boolean removeApplicationPolicy(String appName)
ApplicationPolicyRegistration
removeApplicationPolicy
in interface ApplicationPolicyRegistration
ApplicationPolicyRegistration.removeApplicationPolicy(String)
public BaseAuthenticationInfo getAuthenticationInfo(String domainName)
public void clear()
public void loadConfig()
Copyright © 2017 JBoss by Red Hat. All rights reserved.