|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.configmanager.ConfigManager
org.aselect.server.config.ASelectConfigManager
public class ASelectConfigManager
The configuration manager for the A-Select Server.
Description:
A singleton configuration manager, containing the A-Select Server configuration.
It loads several settings in memory during initialization.
Concurrency issues:
-
Field Summary | |
---|---|
static java.lang.String |
MODULE
The name of this module, that is used in the system logging. |
static java.lang.String |
TAG_COUNTRY
optional template tag |
static java.lang.String |
TAG_FRIENLDY_NAME
optional template tag |
static java.lang.String |
TAG_LANGUAGE
optional template tag |
static java.lang.String |
TAG_MAINTAINER_EMAIL
optional template tag |
static java.lang.String |
TAG_SHOW_URL
optional template tag |
Method Summary | |
---|---|
java.util.Hashtable |
getAuthspSettings()
Get all AuthSP settings. |
java.lang.String |
getCookieDomain()
Returns the cookie domain, if specificaly set in the configuration. |
java.lang.String |
getCookieDomainPath()
Returns the cookie path, if specificaly set in the configuration. |
int |
getCookiesVersion()
Returns the cookie version, which can be forced in configuration. |
java.lang.String |
getDefaultCertId()
Returns the default certificate ID. |
java.security.cert.X509Certificate |
getDefaultCertificate()
Returns the certificate of this A-Select Server. |
java.security.PrivateKey |
getDefaultPrivateKey()
Returns the default private key of this A-Select Server. |
java.lang.String |
getErrorMessage(java.lang.String sErrorCode)
Get the error message that matches the error code that is supplied. |
java.lang.String |
getForm(java.lang.String sForm)
Get a template of an A-Select Server form. |
static ASelectConfigManager |
getHandle()
Must be used to get an ASelectConfigManager instance. |
java.security.PublicKey |
getPrivilegedPublicKey(java.lang.String sAlias)
Returns the public signing key of the privileged application with the given alias. |
java.lang.String |
getRedirectURL()
Returns the A-Select Server redirect URL. |
java.lang.String |
getUIDCookieDomain()
Returns the configured cookie domain for the aselect_uid cookie. |
java.lang.String |
getUIDCookieDomainPath()
Returns the configured cookie path for the aselect_uid cookie. |
java.lang.String |
getWorkingdir()
Returns the A-Select Server working dir. |
void |
init(java.lang.String sWorkingDir,
java.lang.String sSQLDriver,
java.lang.String sSQLUser,
java.lang.String sSQLPassword,
java.lang.String sSQLURL,
java.lang.String sSQLTable,
java.lang.String sConfigIDName)
Initialization of the ASelectConfigManager singleton. |
boolean |
isCrossFallBackEnabled()
Returns if cross fallback is enabled or not. |
boolean |
isSingleSignOn()
Returns TRUE if single sign-on for this A-Select Server is enabled. |
boolean |
isUDBEnabled()
Returns TRUE if a UDB for this A-Select Server is enabled. |
java.lang.String |
updateTemplate(java.lang.String sTemplate,
java.util.Hashtable htSessionContext)
Updates the supplied template with optional requestor information. |
Methods inherited from class org.aselect.system.configmanager.ConfigManager |
---|
getNextSection, getParam, getSection, getSection, importConfig, init, init, removeSection, removeSection, saveConfig, setParam, setSection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODULE
public static final java.lang.String TAG_FRIENLDY_NAME
public static final java.lang.String TAG_MAINTAINER_EMAIL
public static final java.lang.String TAG_SHOW_URL
public static final java.lang.String TAG_LANGUAGE
public static final java.lang.String TAG_COUNTRY
Method Detail |
---|
public static ASelectConfigManager getHandle()
ASelectConfigManager
instance if it's still null
.
public void init(java.lang.String sWorkingDir, java.lang.String sSQLDriver, java.lang.String sSQLUser, java.lang.String sSQLPassword, java.lang.String sSQLURL, java.lang.String sSQLTable, java.lang.String sConfigIDName) throws ASelectException
sWorkingDir != null
.sSQLDriver != null
if config is stored in a file
instead of in a database.sSQLUser != null
if config is stored in a file
instead of in a database.sSQLPassword != null
if config is stored in a file
instead of in a database.sSQLURL != null
if config is stored in a file
instead of in a database.sSQLTable != null
if config is stored in a file
instead of in a database.sConfigIDName != null
if config is stored in a file
instead of in a database.
sWorkingDir
- The workingdir containing the configuration and
keystores of the A-Select Server.sSQLDriver
- The JDBC driver name, used when configuration is stored
in a database.sSQLUser
- The JDBC user name, used when configuration is stored
in a database.sSQLPassword
- The JDBC password for the given user name, used when
configuration is stored in a database.sSQLURL
- The JDBC URL, used when configuration is stored in a
database.sSQLTable
- The JDBC table name in which the configuration is
located; used when configuration is stored in a database.sConfigIDName
- The JDBC configuration id to locate the configuration
in the config table, used when configuration is stored in a database.
ASelectException
- If initialisation fails.public boolean isSingleSignOn()
public boolean isUDBEnabled()
public java.lang.String getCookieDomain()
null
if no domain is set or a String
containing the cookie domain that is configured including the '.' as prefix.public java.lang.String getCookieDomainPath()
null
if no path is configured.public java.lang.String getUIDCookieDomain()
null
if no or an empty domain is configured.public java.lang.String getUIDCookieDomainPath()
null
if no path is configured.public int getCookiesVersion()
public java.lang.String getWorkingdir()
String
containing the A-Select Server working dir.public java.lang.String getRedirectURL()
String
containing the A-Select Server redirect URL dir.public java.util.Hashtable getAuthspSettings()
Hashtable
containing all AuthSP settings.public java.security.PublicKey getPrivilegedPublicKey(java.lang.String sAlias)
PublicKey
of the privileged application that has
the supplied alias name.
null
if no public key was found for that alias.
sAlias
- The id of the public key.
public java.security.PrivateKey getDefaultPrivateKey()
public java.security.cert.X509Certificate getDefaultCertificate()
public java.lang.String getDefaultCertId()
String
representation of the certificate IDpublic java.lang.String getErrorMessage(java.lang.String sErrorCode)
sErrorCode != null
sErrorCode
- An error code as configured in the errors.conf file
String
representation of the error messagepublic java.lang.String getForm(java.lang.String sForm)
sForm != null
sForm
- The id of the form that must be returned.
String
representation of the requested form.public java.lang.String updateTemplate(java.lang.String sTemplate, java.util.Hashtable htSessionContext) throws ASelectException
sTemplate
- the template that must be updatedhtSessionContext
- containing the session information
ASelectException
- if template could not be updatedpublic boolean isCrossFallBackEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |