Package org.jboss.security.authorization
Interface PolicyRegistration
-
- All Known Implementing Classes:
JBossPolicyRegistration
public interface PolicyRegistrationInterface to register policies- Since:
- Jun 18, 2006
- Version:
- $Revision$
- Author:
- Anil Saldhana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeRegisterPolicy(String contextID, String type)Unregister a policy<T> TgetPolicy(String contextID, String type, Map<String,Object> contextMap)Obtain the registered policy for the context idvoidregisterPolicy(String contextID, String type, InputStream stream)Register a policy given a xml based stream and a context idvoidregisterPolicy(String contextID, String type, URL location)Register a policy given the location and a context id<P> voidregisterPolicyConfig(String contextId, String type, P policyConfig)Register a Policy Config model such as a JAXB modelvoidregisterPolicyConfigFile(String contextId, String type, InputStream stream)Register a policy config file (that lists locations of policies)
-
-
-
Field Detail
-
XACML
static final String XACML
Represents an xacml policy- See Also:
- Constant Field Values
-
JACC
static final String JACC
Represents a JACC policy- See Also:
- Constant Field Values
-
CUSTOM
static final String CUSTOM
Represents a Custom policy- See Also:
- Constant Field Values
-
-
Method Detail
-
registerPolicy
void registerPolicy(String contextID, String type, URL location)
Register a policy given the location and a context id- Parameters:
contextID- an unique id representing the contexttype- type of policylocation- location of the Policy File
-
registerPolicy
void registerPolicy(String contextID, String type, InputStream stream)
Register a policy given a xml based stream and a context id- Parameters:
contextID- an unique id representing the contexttype- type of policystream- InputStream that is an XML stream
-
registerPolicyConfigFile
void registerPolicyConfigFile(String contextId, String type, InputStream stream)
Register a policy config file (that lists locations of policies)- Parameters:
contextId- an unique id representing the contexttype- type of policystream- xml stream
-
registerPolicyConfig
<P> void registerPolicyConfig(String contextId, String type, P policyConfig)
Register a Policy Config model such as a JAXB model- Type Parameters:
P- Policy Config model- Parameters:
contextId-type-policyConfig-
-
deRegisterPolicy
void deRegisterPolicy(String contextID, String type)
Unregister a policy- Parameters:
contextID- Context IDtype- the type of policy
-
getPolicy
<T> T getPolicy(String contextID, String type, Map<String,Object> contextMap)
Obtain the registered policy for the context id- Parameters:
contextID- Context IDtype- the type of policy (xacml, jacc, custom etc)contextMap- A map that can be used by the implementation to determine the policy choice (typically null)
-
-