org.jboss.security.microcontainer.beans.metadata
Class MappingMetaData
java.lang.Object
org.jboss.security.microcontainer.beans.metadata.BasePolicyMetaData
org.jboss.security.microcontainer.beans.metadata.MappingMetaData
public class MappingMetaData
- extends BasePolicyMetaData
This class represents a <rolemapping> or a <mapping> configuration in an application policy and
contains the mapping metadata information extracted by the XB parser.
The following policy excerpt shows an example of <rolemapping> configuration:
<application-policy xmlns="urn:jboss:security-beans:1.0" name="TestPolicy1">
<authentication>
...
</authentication>
...
<rolemapping>
<mapping-module code="org.jboss.security.mapping.RoleMappingModule">
<module-option name="mappingOption1">mapping.value1</module-option>
<module-option name="mappingOption2">mapping.value2</module-option>
</mapping-module>
</rolemapping>
...
</application-policy>
Now an example of a <mapping> configuration:
<application-policy xmlns="urn:jboss:security-beans:1.0" name="TestPolicy1">
<authentication>
...
</authentication>
...
<mapping>
<mapping-module code="org.jboss.security.mapping.RoleMappingModule" type="role">
<module-option name="mappingOption1">mapping.value1</module-option>
<module-option name="mappingOption2">mapping.value2</module-option>
</mapping-module>
</mapping>
...
</application-policy>
As can be noticed, both configurations are very similar. As a matter of fact, any module in a <rolemapping>
configuration is actually registered as a <mapping> module of type "role".
The metadata that results from the XB parsing is used by the microcontainer to create an instance of
IdentityTrustPolicyBean and inject this instance into the ApplicationPolicyBean that represents the
application policy as a whole.
- Author:
- Stefan Guilhen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingMetaData
public MappingMetaData()
setModules
public void setModules(List<BaseModuleMetaData> modules)
- Description copied from class:
BasePolicyMetaData
Sets the metadata of the modules that have been specified for the policy.
- Overrides:
setModules in class BasePolicyMetaData
- Parameters:
modules - a List<BaseModuleMetaData> containing the metadata to be set.
Copyright © 2008 JBoss Inc.. All Rights Reserved.