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 void
deRegisterPolicy(String contextID, String type)
Unregister a policy<T> T
getPolicy(String contextID, String type, Map<String,Object> contextMap)
Obtain the registered policy for the context idvoid
registerPolicy(String contextID, String type, InputStream stream)
Register a policy given a xml based stream and a context idvoid
registerPolicy(String contextID, String type, URL location)
Register a policy given the location and a context id<P> void
registerPolicyConfig(String contextId, String type, P objectModel)
Register a Policy Config model such as a JAXB modelvoid
registerPolicyConfigFile(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:PolicyRegistration
Unregister a policy- Specified by:
deRegisterPolicy
in 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:PolicyRegistration
Obtain the registered policy for the context id- Specified by:
getPolicy
in 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:PolicyRegistration
Register a policy given the location and a context id- Specified by:
registerPolicy
in 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:PolicyRegistration
Register a policy given a xml based stream and a context id- Specified by:
registerPolicy
in 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:PolicyRegistration
Register a Policy Config model such as a JAXB model- Specified by:
registerPolicyConfig
in 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:PolicyRegistration
Register a policy config file (that lists locations of policies)- Specified by:
registerPolicyConfigFile
in interfacePolicyRegistration
- Parameters:
contextId
- an unique id representing the contexttype
- type of policystream
- xml stream- See Also:
PolicyRegistration.registerPolicyConfigFile(String, String, InputStream)
-
-