Class ApplicationPolicy


  • public class ApplicationPolicy
    extends Object
    Application Policy Information Holder - Authentication - Authorization - Audit - Mapping
    Since:
    Jun 9, 2006
    Version:
    $Revision$
    Author:
    Anil Saldhana, Marcus Moyses
    • Method Detail

      • getAclInfo

        public ACLInfo getAclInfo()
      • setAclInfo

        public void setAclInfo​(ACLInfo aclInfo)
      • setAuthorizationInfo

        public void setAuthorizationInfo​(AuthorizationInfo authorizationInfo)
      • getRoleMappingInfo

        @Deprecated
        public MappingInfo getRoleMappingInfo()
        Deprecated.

        Gets the MappingInfo object that contains the entries that will be used to map roles.

        Returns:
        the MappingInfo that must be used when mapping roles.
      • setRoleMappingInfo

        @Deprecated
        public void setRoleMappingInfo​(MappingInfo roleMappingInfo)
        Deprecated.

        Sets the MappingInfo object that must be used when mapping roles.

        Parameters:
        roleMappingInfo - the MappingInfo instance to be set.
      • getPrincipalMappingInfo

        @Deprecated
        public MappingInfo getPrincipalMappingInfo()
        Deprecated.

        Gets the MappingInfo object that contains the entries that will be used to map principals.

        Returns:
        the MappingInfo that must be used when mapping principals.
      • setPrincipalMappingInfo

        @Deprecated
        public void setPrincipalMappingInfo​(MappingInfo principalMappingInfo)
        Deprecated.

        Sets the MappingInfo object that must be used when mapping principals.

        Parameters:
        principalMappingInfo - the MappingInfo instance to be set.
      • getMappingInfo

        @Deprecated
        public <T> MappingInfo getMappingInfo​(Class<T> t)
        Deprecated.

        Gets the MappingInfo instance that can map objects of the specified class.

        Parameters:
        t - the class of the objects that are to be mapped.
        Returns:
        the MappingInfo instance that must be used to map objects of the specified class.
      • getMappingInfo

        public MappingInfo getMappingInfo​(String mappingType)

        Gets the MappingInfo instance that can perform the mappings of the specified type.

        Parameters:
        mappingType - a String representing the type of the mappings that are to be performed. This String must match the value of the type attribute of the mapping-module that has been configured in the application policy. For example, consider the following mapping policy:
         <application-policy name="test">
            <authentication>
            ...
            </authentication>
            <mapping>
               <mapping-module code = "org.jboss.test.mapping.MappingModule1" type="role">
                  <module-option name = "option1">value1</module-option>
               </mapping-module>
               <mapping-module code = "org.jboss.test.mapping.MappingModule2" type="principal">
                  <module-option name = "option2">value2</module-option>
               </mapping-module>
            </mapping> while a
         </application-policy>
         
        Executing this method with "role" as parameter would return a MappingInfo that is capable of mapping roles using the MappingModule1. Likewise, executing this method with "principal" as parameter would return a MappingInfo that can map principals using the MappingModule2.
        Returns:
        the MappingInfo instance that can perform the mappings of the specified type, or null if no suitable MappingInfo can be found.
      • setMappingInfo

        public void setMappingInfo​(String mappingType,
                                   MappingInfo info)

        Sets the MappingInfo that must be used to perform the mappings of the specified type.

        Parameters:
        mappingType - the type of mappings that can be performed by the MappingInfo.
        info - a reference to the MappingInfo instance to be set.
      • getAuditInfo

        public AuditInfo getAuditInfo()
      • setAuditInfo

        public void setAuditInfo​(AuditInfo auditInfo)
      • setIdentityTrustInfo

        public void setIdentityTrustInfo​(IdentityTrustInfo identityTrustInfo)
      • getBaseApplicationPolicyName

        public String getBaseApplicationPolicyName()
      • setBaseApplicationPolicyName

        public void setBaseApplicationPolicyName​(String baseApplicationPolicy)
      • getName

        public String getName()
      • setPolicyConfig

        public void setPolicyConfig​(PolicyConfig policyConfig)