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)
PolicyRegistrationdeRegisterPolicy in interface PolicyRegistrationcontextID - Context IDtype - the type of policypublic <T> T getPolicy(String contextID, String type, Map<String,Object> contextMap)
PolicyRegistrationgetPolicy in interface PolicyRegistrationcontextID - 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)
PolicyRegistrationregisterPolicy in interface PolicyRegistrationcontextID - 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)
PolicyRegistrationregisterPolicy in interface PolicyRegistrationcontextID - 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)
PolicyRegistrationregisterPolicyConfig in interface PolicyRegistrationP - Policy Config modelPolicyRegistration.registerPolicyConfig(String, String, Object)public void registerPolicyConfigFile(String contextId, String type, InputStream stream)
PolicyRegistrationregisterPolicyConfigFile in interface PolicyRegistrationcontextId - an unique id representing the contexttype - type of policystream - xml streamPolicyRegistration.registerPolicyConfigFile(String, String, InputStream)Copyright © 2016 JBoss by Red Hat. All rights reserved.