|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyRegistration
Interface to register policies
Field Summary | |
---|---|
static String |
ACL
Represents a ACL policy |
static String |
CUSTOM
Represents a Custom policy |
static String |
JACC
Represents a JACC policy |
static String |
XACML
Represents an xacml policy |
Method Summary | ||
---|---|---|
void |
deRegisterPolicy(String contextID,
String type)
Unregister a policy |
|
|
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 |
|
|
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) |
Field Detail |
---|
static final String XACML
static final String JACC
static final String ACL
static final String CUSTOM
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |