|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.microcontainer.beans.ApplicationPolicyBean
public class ApplicationPolicyBean
This class represents an application policy. An application policy describes the security requirements (authentication, authorization, role-mapping, audit, and identity-trust) for a specific security domain. Each of these requirements is described by the appropriate sub-policy.
Once this bean is started by the microcontainer it uses the information from all configured sub-policies to generate
an org.jboss.security.config.ApplicationPolicy and then registers the generated policy with the security
layer.
BaseAuthenticationPolicy,
AuthorizationPolicyBean,
RoleMappingPolicyBean,
AuditPolicyBean,
IdentityTrustPolicyBean| Field Summary | |
|---|---|
protected static org.jboss.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
ApplicationPolicyBean()
|
|
| Method Summary | |
|---|---|
ApplicationPolicy |
getApplicationPolicy()
Creates and return an org.jboss.security.conf.ApplicationPolicy object using the information contained in
this bean and in the sub-policies beans. |
org.jboss.security.audit.AuditManager |
getAuditManager()
Obtains a reference to the AuditManager that enforces the audit policy. |
AuditPolicyBean |
getAuditPolicy()
Obtains the audit policy that has been configured as part of this application policy. |
AuthenticationManager |
getAuthenticationManager()
Obtains a reference to the AuthenticationManager that enforces the authentication policy. |
BaseAuthenticationPolicy<?> |
getAuthenticationPolicy()
Obtains the authentication policy that has been configured as part of this application policy. |
AuthorizationManager |
getAuthorizationManager()
Obtains a reference to the AuthorizationManager that enforces the authorization policy. |
AuthorizationPolicyBean |
getAuthorizationPolicy()
Obtains the authorization policy that has been configured as part of this application policy. |
IdentityTrustManager |
getIdentityTrustManager()
Obtains a reference to the IdentityTrustManager that enforces the identity-trust policy. |
IdentityTrustPolicyBean |
getIdentityTrustPolicy()
Obtains the identity-trust policy that has been configured as part of this application policy. |
org.jboss.security.mapping.MappingManager |
getMappingManager()
Obtains a reference to the MappingManager that enforces the role-mapping policy. |
String |
getName()
Obtains the name of the application policy. |
String |
getParentPolicy()
Obtains the name of the parent policy. |
RoleMappingPolicyBean |
getRoleMappingPolicy()
Obtains the role-mapping policy that has been configured as part of this application policy. |
void |
setAuditPolicy(AuditPolicyBean auditPolicy)
Sets the audit policy to be used by this application policy. |
void |
setAuthenticationPolicy(BaseAuthenticationPolicy<?> authenticationPolicy)
Sets the authentication policy to be used by this application policy. |
void |
setAuthorizationPolicy(AuthorizationPolicyBean authorizationPolicy)
Sets the authorization policy to be used by this application policy. |
void |
setIdentityTrustPolicy(IdentityTrustPolicyBean identityTrustPolicy)
Sets the identity-trust policy to be used by this application policy. |
void |
setName(String name)
Sets the name of the application policy. |
void |
setParentPolicy(String parentPolicy)
Sets the name of the parent policy. |
void |
setRoleMappingPolicy(RoleMappingPolicyBean roleMappingPolicy)
Sets the role-mapping policy to be used by this application policy. |
void |
setSecurityManagement(ISecurityManagement securityManagement)
Sets the ISecurityManagement implementation that must be used by this bean to obtain the various security
managers that enforce the security policies specified for the domain this bean represents. |
void |
start()
Registers the application policy with the security framework once this bean has started. |
void |
stop()
Unregisters the application policy from the security framework when the bean stops. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.jboss.logging.Logger logger
| Constructor Detail |
|---|
public ApplicationPolicyBean()
| Method Detail |
|---|
public String getName()
Obtains the name of the application policy.
String representing the name of the application policy.public void setName(String name)
Sets the name of the application policy.
name - a String representing the name to be set.public String getParentPolicy()
Obtains the name of the parent policy.
String representing the name of the parent policy.public void setParentPolicy(String parentPolicy)
Sets the name of the parent policy.
parentPolicy - a String representing the name of the parent policy to be set.public BaseAuthenticationPolicy<?> getAuthenticationPolicy()
Obtains the authentication policy that has been configured as part of this application policy.
BaseAuthenticationPolicy representing the configured authentication policy.public void setAuthenticationPolicy(BaseAuthenticationPolicy<?> authenticationPolicy)
Sets the authentication policy to be used by this application policy.
authenticationPolicy - a BaseAuthenticationPolicy representing the policy to be set.public AuthorizationPolicyBean getAuthorizationPolicy()
Obtains the authorization policy that has been configured as part of this application policy.
AuthorizationPolicyBean representing the configured authorization policy.public void setAuthorizationPolicy(AuthorizationPolicyBean authorizationPolicy)
Sets the authorization policy to be used by this application policy.
authorizationPolicy - an AuthorizationPolicyBean representing the policy to be set.public RoleMappingPolicyBean getRoleMappingPolicy()
Obtains the role-mapping policy that has been configured as part of this application policy.
RoleMappingPolicyBean representing the configured role-mapping policy.public void setRoleMappingPolicy(RoleMappingPolicyBean roleMappingPolicy)
Sets the role-mapping policy to be used by this application policy.
roleMappingPolicy - a RoleMappingPolicyBean representing the policy to be set.public AuditPolicyBean getAuditPolicy()
Obtains the audit policy that has been configured as part of this application policy.
AuditPolicyBean representing the configured audit policy.public void setAuditPolicy(AuditPolicyBean auditPolicy)
Sets the audit policy to be used by this application policy.
auditPolicy - an AuditPolicyBean representing the policy to be set.public IdentityTrustPolicyBean getIdentityTrustPolicy()
Obtains the identity-trust policy that has been configured as part of this application policy.
IdentityTrustPolicyBean representing the configured identity-trust policy.public void setIdentityTrustPolicy(IdentityTrustPolicyBean identityTrustPolicy)
Sets the identity-trust policy to be used by this application policy.
identityTrustPolicy - an IdentityTrustPolicyBean representing the policy to be set.public void setSecurityManagement(ISecurityManagement securityManagement)
Sets the ISecurityManagement implementation that must be used by this bean to obtain the various security
managers that enforce the security policies specified for the domain this bean represents.
securityManagement - an implementation of the ISecurityManagement interface.public AuthenticationManager getAuthenticationManager()
Obtains a reference to the AuthenticationManager that enforces the authentication policy.
AuthenticationManager that authenticates users according to the specified policy, or
null if no AuthenticationManager is available.public AuthorizationManager getAuthorizationManager()
Obtains a reference to the AuthorizationManager that enforces the authorization policy.
AuthorizationManager that authorizes access to resources according to the specified policy, or
null if no AuthorizationManager is available.public org.jboss.security.mapping.MappingManager getMappingManager()
Obtains a reference to the MappingManager that enforces the role-mapping policy.
MappingManager that maps roles and identities according to the specified policy, or
null if no MappingManager is available.public org.jboss.security.audit.AuditManager getAuditManager()
Obtains a reference to the AuditManager that enforces the audit policy.
AuditManager that records security events according to the specified policy, or null
if no AuditManager is available.public IdentityTrustManager getIdentityTrustManager()
Obtains a reference to the IdentityTrustManager that enforces the identity-trust policy.
IdentityTrustManager implementation to be used, or null if no
IdentityTrustManager is available.
public void start()
throws Exception
Registers the application policy with the security framework once this bean has started.
Exception - if an error occurs while registering the application policy.
public void stop()
throws Exception
Unregisters the application policy from the security framework when the bean stops.
Exception - if an error occurs while unregistering the application policy.public ApplicationPolicy getApplicationPolicy()
Creates and return an org.jboss.security.conf.ApplicationPolicy object using the information contained in
this bean and in the sub-policies beans.
ApplicationPolicy object.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||