com.ibm.sec.authz.jaccplus.internal
Interface IPermissionTransformer

All Known Implementing Classes:
AbstractJACCPermissionTransformer, AbstractPermissionTransformer, ApplicationPermissionConverter, EJBMethodPermissionConverter, EJBRoleRefPermissionConverter, GenericRoleRefPermissionConverter, WebResourcePermissionConverter, WebRoleRefPermissionConverter, WebUserDataPermissionConverter

public interface IPermissionTransformer


Method Summary
 void addPermissionToRequest(java.security.Permission p, com.ibm.sec.authz.xacml.provider.Request r)
          Convert the passed Permission object into XACML format by adding appropriate attributes to the XACML4J request object.
 com.ibm.sec.authz.xacml.policy.Rule convertPermissionToRule(java.security.Permission p)
          This method is used to convert the passed Permission object into an XACML rule.
 java.security.Permission createPermission(com.ibm.sec.authz.xacml.provider.Entitlement entitlement)
          Create a instance of a Permission object, based on an XACML4J entitlement.
 java.lang.Object getConstantValue(com.ibm.sec.authz.xacml.policy.AttributeDesignator designator)
          If the passed AttributeDesignator has a constant value, return it.
 com.ibm.sec.authz.xacml.policy.AttributeDesignator[] getVocabulary()
          Get the set of AttributeDesignators that this IPermissionTransformer uses to represent this Permission class.
 boolean supportsEntitlements()
          If true, this permission transformer supports the conversion back from XACML4J entitlements into Permission objects.
 

Method Detail

addPermissionToRequest

void addPermissionToRequest(java.security.Permission p,
                            com.ibm.sec.authz.xacml.provider.Request r)
Convert the passed Permission object into XACML format by adding appropriate attributes to the XACML4J request object.

Parameters:
p - The Permission to convert
r - The XACML request to update

convertPermissionToRule

com.ibm.sec.authz.xacml.policy.Rule convertPermissionToRule(java.security.Permission p)
                                                            throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
This method is used to convert the passed Permission object into an XACML rule.

Parameters:
p - The Permission object to convert
Returns:
Rule
Throws:
com.ibm.sec.authz.xacml.config.XACMLConfigurationException

supportsEntitlements

boolean supportsEntitlements()
If true, this permission transformer supports the conversion back from XACML4J entitlements into Permission objects.

Returns:
True if entitlement conversions are supported

getVocabulary

com.ibm.sec.authz.xacml.policy.AttributeDesignator[] getVocabulary()
Get the set of AttributeDesignators that this IPermissionTransformer uses to represent this Permission class.

Returns:

getConstantValue

java.lang.Object getConstantValue(com.ibm.sec.authz.xacml.policy.AttributeDesignator designator)
If the passed AttributeDesignator has a constant value, return it. Otherwise, return null.

Parameters:
designator -
Returns:

createPermission

java.security.Permission createPermission(com.ibm.sec.authz.xacml.provider.Entitlement entitlement)
Create a instance of a Permission object, based on an XACML4J entitlement.

Parameters:
entitlement -
Returns:


Copyright © 2009 IBM Corp. All Rights Reserved.