|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.microcontainer.beans.metadata.ApplicationPolicyMetaDataFactory
public class ApplicationPolicyMetaDataFactory
This class represents the <application-policy> element in a security configuration. It is also a
BeanMetaDataFactory implementation that uses all the metadata created during the XB parse to build an
instance of ApplicationPolicyBean.
An example of <application-policy> configuration is as follows:
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<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>
</authentication>
</application-policy>
...
</deployment>
The information parsed from an <application-policy> configuration is used to create a graph of metadata
classes that has this class as root. Being a BeanMetaDataFactory, this class uses the metadata graph to
create an instance of ApplicationPolicyBean and all correlated beans, registering them with the
microcontainer.
ApplicationPolicyBean| Field Summary | |
|---|---|
protected static org.jboss.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
ApplicationPolicyMetaDataFactory()
|
|
| Method Summary | |
|---|---|
List<org.jboss.beans.metadata.spi.BeanMetaData> |
getBeans()
|
void |
setAudit(AuditMetaData auditMetaData)
Sets the metadata generated as a result of parsing the <audit> element in an application policy configuration. |
void |
setAuthentication(AuthenticationMetaData authMetaData)
Sets the metadata generated as a result of parsing the <authentication> element in an application policy configuration. |
void |
setAuthorization(AuthorizationMetaData authzMetaData)
Sets the metadata generated as a result of parsing the <authorization> element in an application policy configuration. |
void |
setIdentityTrust(IdentityTrustMetaData trustMetaData)
Sets the metadata generated as a result of parsing the <identity-trust> element in an application policy configuration. |
void |
setJaspiAuthentication(JASPIAuthenticationMetaData jaspiMetaData)
Sets the metadata generated as a result of parsing the <authentication-jaspi> element in an application policy configuration. |
void |
setParentPolicy(String parentPolicy)
Sets the name of the parent application policy, if applicable. |
void |
setPolicyName(String policyName)
Sets the name of the application policy. |
void |
setRoleMapping(RoleMappingMetaData mappingMetaData)
Sets the metadata generated as a result of parsing the <rolemapping> element in an application policy configuration. |
void |
setSecurityManagement(String securityManagement)
Sets the name of the security management bean that must be injected into the policy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.jboss.logging.Logger logger
| Constructor Detail |
|---|
public ApplicationPolicyMetaDataFactory()
| Method Detail |
|---|
public void setPolicyName(String policyName)
Sets the name of the application policy.
policyName - a String representing the name to be set.public void setParentPolicy(String parentPolicy)
Sets the name of the parent application policy, if applicable.
parentPolicy - a String representing the name of the parent policy.public void setSecurityManagement(String securityManagement)
Sets the name of the security management bean that must be injected into the policy.
securityManagement - a String representing the name of the management bean.public void setAuthentication(AuthenticationMetaData authMetaData)
Sets the metadata generated as a result of parsing the <authentication> element in an application policy configuration.
authMetaData - a reference to the generated AuthenticationMetaData.public void setJaspiAuthentication(JASPIAuthenticationMetaData jaspiMetaData)
Sets the metadata generated as a result of parsing the <authentication-jaspi> element in an application policy configuration.
jaspiMetaData - a reference to the generated JASPIAuthenticationMetaData.public void setAuthorization(AuthorizationMetaData authzMetaData)
Sets the metadata generated as a result of parsing the <authorization> element in an application policy configuration.
authzMetaData - a reference to the generated AuthorizationMetaData.public void setRoleMapping(RoleMappingMetaData mappingMetaData)
Sets the metadata generated as a result of parsing the <rolemapping> element in an application policy configuration.
mappingMetaData - a reference to the generated RoleMappingMetaData.public void setAudit(AuditMetaData auditMetaData)
Sets the metadata generated as a result of parsing the <audit> element in an application policy configuration.
auditMetaData - a reference to the generated AuditMetaData.public void setIdentityTrust(IdentityTrustMetaData trustMetaData)
Sets the metadata generated as a result of parsing the <identity-trust> element in an application policy configuration.
trustMetaData - a reference to the generated IdentityTrustMetaData.public List<org.jboss.beans.metadata.spi.BeanMetaData> getBeans()
getBeans in interface org.jboss.beans.metadata.spi.BeanMetaDataFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||