org.jboss.security.microcontainer.beans.metadata
Class AuthenticationMetaData
java.lang.Object
org.jboss.security.microcontainer.beans.metadata.BasePolicyMetaData
org.jboss.security.microcontainer.beans.metadata.AuthenticationMetaData
public class AuthenticationMetaData
- extends BasePolicyMetaData
This class represents the <authentication>
configuration in an application policy and contains the
authentication metadata information extracted by the XB parser.
The following policy excerpt shows an example of <authentication>
configuration:
<application-policy xmlns="urn:jboss:security-beans:1.0" name="TestPolicy1">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
<module-option name="usersProperties">jboss-users.properties</module-option>
<module-option name="rolesProperties">jboss-roles.properties</module-option>
</login-module>
<login-module code="org.jboss.security.auth.spi.DataBaseServerLoginModule" flag="optional">
<module-option name="principalsQuery">SELECT PASSWD FROM USERS WHERE USER_ID=?</module-option>
<module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM ROLES WHERE USER_ID=?</module-option>
</login-module>
</authentication>
...
</application-policy>
The metadata that results from the XB parsing is used by the microcontainer to create an instance of
AuthenticationPolicyBean
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 |
AuthenticationMetaData
public AuthenticationMetaData()
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 © 2009 JBoss Inc.. All Rights Reserved.