public class ApplicationPolicy extends Object
| Constructor and Description |
|---|
ApplicationPolicy(String theName) |
ApplicationPolicy(String theName,
AuthorizationInfo info) |
ApplicationPolicy(String theName,
BaseAuthenticationInfo info) |
ApplicationPolicy(String theName,
BaseAuthenticationInfo info,
AuthorizationInfo info2) |
public ApplicationPolicy(String theName)
public ApplicationPolicy(String theName, BaseAuthenticationInfo info)
public ApplicationPolicy(String theName, AuthorizationInfo info)
public ApplicationPolicy(String theName, BaseAuthenticationInfo info, AuthorizationInfo info2)
public ACLInfo getAclInfo()
public void setAclInfo(ACLInfo aclInfo)
public BaseAuthenticationInfo getAuthenticationInfo()
public void setAuthenticationInfo(BaseAuthenticationInfo authenticationInfo)
public AuthorizationInfo getAuthorizationInfo()
public void setAuthorizationInfo(AuthorizationInfo authorizationInfo)
@Deprecated public MappingInfo getRoleMappingInfo()
getMappingInfo(String) instead.
Gets the MappingInfo object that contains the entries that will be used to map roles.
MappingInfo that must be used when mapping roles.@Deprecated public void setRoleMappingInfo(MappingInfo roleMappingInfo)
setMappingInfo(String, MappingInfo) instead.
Sets the MappingInfo object that must be used when mapping roles.
roleMappingInfo - the MappingInfo instance to be set.@Deprecated public MappingInfo getPrincipalMappingInfo()
getMappingInfo(String) instead.
Gets the MappingInfo object that contains the entries that will be used to map principals.
MappingInfo that must be used when mapping principals.@Deprecated public void setPrincipalMappingInfo(MappingInfo principalMappingInfo)
setMappingInfo(String, MappingInfo) instead.
Sets the MappingInfo object that must be used when mapping principals.
principalMappingInfo - the MappingInfo instance to be set.@Deprecated public <T> MappingInfo getMappingInfo(Class<T> t)
getMappingInfo(String) instead.
Gets the MappingInfo instance that can map objects of the specified class.
t - the class of the objects that are to be mapped.MappingInfo instance that must be used to map objects of the specified class.public MappingInfo getMappingInfo(String mappingType)
Gets the MappingInfo instance that can perform the mappings of the specified type.
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.MappingInfo instance that can perform the mappings of the specified type, or null if
no suitable MappingInfo can be found.public void setMappingInfo(String mappingType, MappingInfo info)
Sets the MappingInfo that must be used to perform the mappings of the specified type.
mappingType - the type of mappings that can be performed by the MappingInfo.info - a reference to the MappingInfo instance to be set.public AuditInfo getAuditInfo()
public void setAuditInfo(AuditInfo auditInfo)
public IdentityTrustInfo getIdentityTrustInfo()
public void setIdentityTrustInfo(IdentityTrustInfo identityTrustInfo)
public String getBaseApplicationPolicyName()
public void setBaseApplicationPolicyName(String baseApplicationPolicy)
public String getName()
public PolicyConfig getPolicyConfig()
public void setPolicyConfig(PolicyConfig policyConfig)
public void writeContent(XMLStreamWriter writer) throws XMLStreamException
writer - XMLStreamExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.