|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sec.authz.jaccplus.config.internal.ContextManager
public class ContextManager
This class handles the deployed contexts, their states, and the links between them.
The context identifiers stored by this implementation should be UNENCODED, so don't pass in URL encoded values.
Method Summary | |
---|---|
void |
addLink(java.lang.String sourceContext,
java.lang.String targetContext)
This method is used to add a link between the two contexts. |
void |
addPolicyContext(java.lang.String context)
This method is used to add a context so that the manager knows it exists. |
static ContextManager |
getManager(java.util.Properties props)
|
java.lang.String[] |
getPolicyContexts()
This method is used to get a list of all contexts that policy has been deployed under. |
java.lang.String[] |
getPolicyContexts(java.lang.String roleMappingContext)
This method is used to return a list of context identifiers linked to the passed role mapping context. |
void |
removeLinks(java.lang.String policyContext)
This method is used to remove the passed link configuration from links it may be a participant in. |
void |
removePolicyContext(java.lang.String context)
This method is used to remove a context so that the manager knows it no longer exists. |
void |
save()
Save our context mappings to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ContextManager getManager(java.util.Properties props)
public void addPolicyContext(java.lang.String context)
context
- The policy context to add to the set of contexts in service.public void removePolicyContext(java.lang.String context)
context
- The policy context to remove from the set of contexts in service.public void addLink(java.lang.String sourceContext, java.lang.String targetContext)
sourceContext
- targetContext
- public java.lang.String[] getPolicyContexts(java.lang.String roleMappingContext) throws javax.security.jacc.PolicyContextException
The primary point of this method is for WebSphere. It iterates over all the listed policy contexts and returns the ones that are prefixed by the given role-mapping context.
If no prefixed policy contexts are found, then it means we're probably running outside WebSphere. In this case, the value that was passed in is returned.
roleMappingContext
- The role mapping context to which to find linked context identifiers.
javax.security.jacc.PolicyContextException
public java.lang.String[] getPolicyContexts()
public void removeLinks(java.lang.String policyContext)
policyContext
- The context to remove linked configurations from.public void save()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |