|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.config.ApplicationPolicy
public class ApplicationPolicy
Application Policy Information Holder - Authentication - Authorization - Audit - Mapping
Constructor Summary | |
---|---|
ApplicationPolicy(String theName)
|
|
ApplicationPolicy(String theName,
AuthorizationInfo info)
|
|
ApplicationPolicy(String theName,
BaseAuthenticationInfo info)
|
|
ApplicationPolicy(String theName,
BaseAuthenticationInfo info,
AuthorizationInfo info2)
|
Method Summary | ||
---|---|---|
ACLInfo |
getAclInfo()
|
|
AuditInfo |
getAuditInfo()
|
|
BaseAuthenticationInfo |
getAuthenticationInfo()
|
|
AuthorizationInfo |
getAuthorizationInfo()
|
|
String |
getBaseApplicationPolicyName()
|
|
IdentityTrustInfo |
getIdentityTrustInfo()
|
|
|
getMappingInfo(Class<T> t)
Deprecated. use getMappingInfo(String) instead. |
|
MappingInfo |
getMappingInfo(String mappingType)
Gets the MappingInfo instance that can perform the mappings of the specified type. |
|
String |
getName()
|
|
PolicyConfig |
getPolicyConfig()
|
|
MappingInfo |
getPrincipalMappingInfo()
Deprecated. use ApplicationPolicy#getMappingInfo("principal") instead. |
|
MappingInfo |
getRoleMappingInfo()
Deprecated. use ApplicationPolicy#getMappingInfo("role") instead. |
|
void |
setAclInfo(ACLInfo aclInfo)
|
|
void |
setAuditInfo(AuditInfo auditInfo)
|
|
void |
setAuthenticationInfo(BaseAuthenticationInfo authenticationInfo)
|
|
void |
setAuthorizationInfo(AuthorizationInfo authorizationInfo)
|
|
void |
setBaseApplicationPolicyName(String baseApplicationPolicy)
|
|
void |
setIdentityTrustInfo(IdentityTrustInfo identityTrustInfo)
|
|
void |
setMappingInfo(String mappingType,
MappingInfo info)
Sets the MappingInfo that must be used to perform the mappings of the specified type. |
|
void |
setPolicyConfig(PolicyConfig policyConfig)
|
|
void |
setPrincipalMappingInfo(MappingInfo principalMappingInfo)
Deprecated. use ApplicationPolicy#setMappingInfo("principal", MappingInfo) instead. |
|
void |
setRoleMappingInfo(MappingInfo roleMappingInfo)
Deprecated. use ApplicationPolicy#setMappingInfo("role", MappingInfo) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationPolicy(String theName)
public ApplicationPolicy(String theName, BaseAuthenticationInfo info)
public ApplicationPolicy(String theName, AuthorizationInfo info)
public ApplicationPolicy(String theName, BaseAuthenticationInfo info, AuthorizationInfo info2)
Method Detail |
---|
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()
ApplicationPolicy#getMappingInfo("role")
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)
ApplicationPolicy#setMappingInfo("role", MappingInfo)
instead.
Sets the MappingInfo
object that must be used when mapping roles.
roleMappingInfo
- the MappingInfo
instance to be set.@Deprecated public MappingInfo getPrincipalMappingInfo()
ApplicationPolicy#getMappingInfo("principal")
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)
ApplicationPolicy#setMappingInfo("principal", MappingInfo)
instead.
Sets the MappingInfo
object that must be used when mapping principals.
roleMappingInfo
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |