public class SecurityManagerFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
SecurityManagerFactory() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addManagerToApp(Map<String,Map<String,T>> iD2sMmap,
Map<String,List<String>> app2iDmap,
String ctxId,
String name,
String appName,
T manager)
In iD2sMmap, maps manager to ctxId and name, and in app2iDmap, includes ctxID in values mapped to appName.
|
<T> String[] |
getContextsForApp(Map<String,List<String>> app2iDmap,
String appName,
boolean remove)
Get (EJB or Web) Policy context identifiers for app.
|
<T> T |
getManager(Map<String,Map<String,T>> iD2sMmap,
String ctxId,
String name,
boolean remove)
Find SecurityManager by policy context identifier and name (as secondary key).
|
<T> ArrayList<T> |
getManagers(Map<String,Map<String,T>> iD2sMmap,
String ctxId,
boolean remove)
Get all SecurityManagers associated with a policy context identifier.
|
<T> List<T> |
getManagersForApp(Map<String,Map<String,T>> iD2sMmap,
Map<String,List<String>> app2iDmap,
String appName,
boolean remove)
Get (Web or EJB) SecurityManagers associated with an application.
|
public <T> T getManager(Map<String,Map<String,T>> iD2sMmap, String ctxId, String name, boolean remove)
iD2sMmap
- maps policy context id (as key) to subordinate map (as value) of (module) name (as key) to
SecurityManagers (as value).ctxId
- the policy context identifier (i.e., the primary key of the lookupname
- the name of the component (e.g., the ejb name when looking up an EJBSecurityManager. for
WebSecurityManagers this value should be nullremove
- boolean indicating whether the corresponding SecurityManager is to be deleted from the map.public <T> ArrayList<T> getManagers(Map<String,Map<String,T>> iD2sMmap, String ctxId, boolean remove)
iD2sMmap
- maps policy context id (as key) to subordinate map (as value) of (module) name (as key) to
SecurityManagers (as value).ctxId
- the policy context identifier (i.e., the lookup key).remove
- boolean indicating whether the corresponding SecurityManager(s) are to be deleted from the map.public <T> List<T> getManagersForApp(Map<String,Map<String,T>> iD2sMmap, Map<String,List<String>> app2iDmap, String appName, boolean remove)
iD2sMmap
- maps policy context id (as key) to subordinate map (as value) of (module) name (as key) to
SecurityManagers (as value).app2iDmap
- maps appName (as key) to list of policy context identifiers (as value).appName
- the application name, (i.e., the lookup key)remove
- boolean indicating whether the corresponding mappings are to be removed from the app2iDmap and
aiD2sMmap.public <T> String[] getContextsForApp(Map<String,List<String>> app2iDmap, String appName, boolean remove)
app2iDmap
- maps appName (as key) to list of policy context identifiers (as value).appName
- the application name, (i.e., the lookup key).remove
- boolean indicating whether the corresponding mappings are to be removed from the app2iDmap.public <T> void addManagerToApp(Map<String,Map<String,T>> iD2sMmap, Map<String,List<String>> app2iDmap, String ctxId, String name, String appName, T manager)
iD2sMmap
- maps policy context id (as key) to subordinate map (as value) of (module) name (as key) to
SecurityManagers (as value).app2iDmap
- maps appName (as key) to list of policy context identifiers (as value).ctxId
- the policy context identifiername
- the component name (the EJB name or null for web modules)appName
- the application namemanager
- the SecurityManagerCopyright © 2021. All rights reserved.