|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.server.application.ApplicationManager
public class ApplicationManager
The application manager for the A-Select Server.
Description:
A singleton application manager, containing the application configuration.
It loads several application settings in memory during initialization.
Concurrency issues:
The class is a singleton, so the same class is used in all the classes of
the A-Select Server.
Constructor Summary | |
---|---|
ApplicationManager()
|
Method Summary | |
---|---|
java.lang.String |
getAttributePolicy(java.lang.String sAppId)
Returns the attribute policy for an application. |
java.lang.String |
getFriendlyName(java.lang.String sAppId)
Returns the Friendly Name for an application. |
static ApplicationManager |
getHandle()
Must be used to get an ApplicationManager instance. |
java.lang.String |
getMaintainerEmail(java.lang.String sAppId)
Returns the maintainer email address for an application. |
java.lang.Integer |
getMaxLevel(java.lang.String sAppId)
Returns the maximum level for an application. |
java.lang.String |
getOptionalParam(java.lang.String sAppId,
java.lang.String sName)
Returns the requested optional parameter for an application. |
java.lang.String |
getParam(java.lang.String sAppId,
java.lang.String sName)
Returns the requested parameter for an application. |
java.lang.Integer |
getRequiredLevel(java.lang.String sAppId)
Returns the required level for an application. |
java.security.PublicKey |
getSigningKey(java.lang.String sAppId)
Retrieve a signing key. |
java.util.Vector |
getSSOGroups(java.lang.String sAppId)
Returns a all configured single sign-on groups for the supplied sAppID. |
boolean |
hasApplicationsConfigured()
|
void |
init()
Initialization of the ApplicationManager singleton Description: Must be successfully run once, before it can be used. |
boolean |
isApplication(java.lang.String sAppId)
|
boolean |
isForcedAuthenticateEnabled(java.lang.String sAppId)
|
boolean |
isShowUrl(java.lang.String sAppId)
Returns if the app url must be shown or not Description: Returns true if app url must be shown and false if not. |
boolean |
isSigningRequired()
|
boolean |
isUseOpaqueUid(java.lang.String sAppId)
Returns if an opaque uid must be used for an application. |
boolean |
isValidSSOGroup(java.util.Vector vValidSSOGroups,
java.util.Vector vOldSSOGroups)
Verifies if one of the supplied single sign-on groups contains in the existing TGT Description: Verifies if one sso_group that exists in the vValidSSOGroups correspond with one sso_group in the vOldSSOGroups Concurrency issues: - Preconditions: vValidSSOGroups may not be null
vOldSSOGroups may not be null
Postconditions: - |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationManager()
Method Detail |
---|
public static ApplicationManager getHandle()
ApplicationManager
instance if it's still null
.
ApplicationManager
.public void init() throws ASelectException
ASelectConfigManager
should be initialized.
ASelectException
public boolean hasApplicationsConfigured()
public boolean isApplication(java.lang.String sAppId)
sAppId
- the Id of the application
public boolean isSigningRequired()
public java.lang.Integer getRequiredLevel(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
null
if no level was found.
ASelectException
public java.lang.Integer getMaxLevel(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
null
if no level was found.
ASelectException
public java.security.PublicKey getSigningKey(java.lang.String sAppId) throws ASelectException
sAppId
- The application ID.
ASelectException
- If retrieving fails.public boolean isForcedAuthenticateEnabled(java.lang.String sAppId) throws ASelectException
sAppId
- The application id that will be checked for enabled forced
authentication
ASelectException
public java.lang.String getAttributePolicy(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
null
if no level was found.
ASelectException
public java.lang.String getFriendlyName(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
null
if no friendly name was found.
ASelectException
public java.lang.String getMaintainerEmail(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
null
if no level was found.
ASelectException
public boolean isUseOpaqueUid(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
ASelectException
public boolean isShowUrl(java.lang.String sAppId) throws ASelectException
sAppId
- String
containing an application id.
ASelectException
public java.util.Vector getSSOGroups(java.lang.String sAppId)
Vector
containing all configured single sign-on
groups for the supplied app_id. If now groups is configured the default
group "0" is returned.
null
null
sAppId
- The single sign-on groups in which this app id is contained
null
if the supplied app id isn't configured in a
single sign-on grouppublic boolean isValidSSOGroup(java.util.Vector vValidSSOGroups, java.util.Vector vOldSSOGroups)
null
null
vValidSSOGroups
- Vector
containing the sso_group id's
of the current applicationvOldSSOGroups
- Vector
containing the sso_group id's
that are known in the TGT
public java.lang.String getParam(java.lang.String sAppId, java.lang.String sName)
sAppId
- String
containing an application id.sName
- String
containing the parameter name asked for.
null
if the attribute was not found.public java.lang.String getOptionalParam(java.lang.String sAppId, java.lang.String sName) throws ASelectException
null
if the attribute is not present. Unlike
the getParam(String, String)
method, this method does not
complain about missing parameters in the system log.
sAppId
- String
containing an application id.sName
- String
containing the parameter name asked for.
null
if the attribute was not found.
ASelectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |