Package org.jboss.security.plugins
Class JBossPolicyRegistration
- java.lang.Object
-
- org.jboss.security.plugins.JBossPolicyRegistration
-
- All Implemented Interfaces:
Serializable,PolicyRegistration
public class JBossPolicyRegistration extends Object implements PolicyRegistration, Serializable
Default implementation of Policy Registration interface- Since:
- Mar 31, 2008
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jboss.security.authorization.PolicyRegistration
CUSTOM, JACC, XACML
-
-
Constructor Summary
Constructors Constructor Description JBossPolicyRegistration()
-
Method Summary
All Methods Instance Methods Concrete 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 objectModel)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)
-
-
-
Method Detail
-
deRegisterPolicy
public void deRegisterPolicy(String contextID, String type)
Description copied from interface:PolicyRegistrationUnregister a policy- Specified by:
deRegisterPolicyin interfacePolicyRegistration- Parameters:
contextID- Context IDtype- the type of policy
-
getPolicy
public <T> T getPolicy(String contextID, String type, Map<String,Object> contextMap)
Description copied from interface:PolicyRegistrationObtain the registered policy for the context id- Specified by:
getPolicyin interfacePolicyRegistration- 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)
-
registerPolicy
public void registerPolicy(String contextID, String type, URL location)
Description copied from interface:PolicyRegistrationRegister a policy given the location and a context id- Specified by:
registerPolicyin interfacePolicyRegistration- Parameters:
contextID- an unique id representing the contexttype- type of policylocation- location of the Policy File- See Also:
PolicyRegistration.registerPolicy(String, String, URL)
-
registerPolicy
public void registerPolicy(String contextID, String type, InputStream stream)
Description copied from interface:PolicyRegistrationRegister a policy given a xml based stream and a context id- Specified by:
registerPolicyin interfacePolicyRegistration- Parameters:
contextID- an unique id representing the contexttype- type of policystream- InputStream that is an XML stream- See Also:
PolicyRegistration.registerPolicy(String, String, InputStream)
-
registerPolicyConfig
public <P> void registerPolicyConfig(String contextId, String type, P objectModel)
Description copied from interface:PolicyRegistrationRegister a Policy Config model such as a JAXB model- Specified by:
registerPolicyConfigin interfacePolicyRegistration- Type Parameters:
P- Policy Config model- See Also:
PolicyRegistration.registerPolicyConfig(String, String, Object)
-
registerPolicyConfigFile
public void registerPolicyConfigFile(String contextId, String type, InputStream stream)
Description copied from interface:PolicyRegistrationRegister a policy config file (that lists locations of policies)- Specified by:
registerPolicyConfigFilein interfacePolicyRegistration- Parameters:
contextId- an unique id representing the contexttype- type of policystream- xml stream- See Also:
PolicyRegistration.registerPolicyConfigFile(String, String, InputStream)
-
-