public interface PolicyRegistration
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM
Represents a Custom policy
|
static String |
JACC
Represents a JACC policy
|
static String |
XACML
Represents an xacml policy
|
| 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 policyConfig)
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)
|
static final String XACML
static final String JACC
static final String CUSTOM
void registerPolicy(String contextID, String type, URL location)
contextID - an unique id representing the contexttype - type of policylocation - location of the Policy Filevoid registerPolicy(String contextID, String type, InputStream stream)
contextID - an unique id representing the contexttype - type of policystream - InputStream that is an XML streamvoid registerPolicyConfigFile(String contextId, String type, InputStream stream)
contextId - an unique id representing the contexttype - type of policystream - xml stream<P> void registerPolicyConfig(String contextId, String type, P policyConfig)
P - Policy Config modelcontextId - type - policyConfig - void deRegisterPolicy(String contextID, String type)
contextID - Context IDtype - the type of policy<T> T getPolicy(String contextID, String type, Map<String,Object> contextMap)
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)Copyright © 2018 JBoss by Red Hat. All rights reserved.