public class JBossPolicyRegistration extends Object implements PolicyRegistration, Serializable
CUSTOM, JACC, XACML
Constructor and Description |
---|
JBossPolicyRegistration() |
Modifier and Type | Method and 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 id
|
void |
registerPolicy(String contextID,
String type,
InputStream stream)
Register a policy given a xml based stream and a context id
|
void |
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 model
|
void |
registerPolicyConfigFile(String contextId,
String type,
InputStream stream)
Register a policy config file (that lists locations of policies)
|
public void deRegisterPolicy(String contextID, String type)
PolicyRegistration
deRegisterPolicy
in interface PolicyRegistration
contextID
- Context IDtype
- the type of policypublic <T> T getPolicy(String contextID, String type, Map<String,Object> contextMap)
PolicyRegistration
getPolicy
in interface PolicyRegistration
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)public void registerPolicy(String contextID, String type, URL location)
PolicyRegistration
registerPolicy
in interface PolicyRegistration
contextID
- an unique id representing the contexttype
- type of policylocation
- location of the Policy FilePolicyRegistration.registerPolicy(String, String, URL)
public void registerPolicy(String contextID, String type, InputStream stream)
PolicyRegistration
registerPolicy
in interface PolicyRegistration
contextID
- an unique id representing the contexttype
- type of policystream
- InputStream that is an XML streamPolicyRegistration.registerPolicy(String, String, InputStream)
public <P> void registerPolicyConfig(String contextId, String type, P objectModel)
PolicyRegistration
registerPolicyConfig
in interface PolicyRegistration
P
- Policy Config modelPolicyRegistration.registerPolicyConfig(String, String, Object)
public void registerPolicyConfigFile(String contextId, String type, InputStream stream)
PolicyRegistration
registerPolicyConfigFile
in interface PolicyRegistration
contextId
- an unique id representing the contexttype
- type of policystream
- xml streamPolicyRegistration.registerPolicyConfigFile(String, String, InputStream)
Copyright © 2017 JBoss by Red Hat. All rights reserved.